Create command

Bootstrap a new browser extension project from an official template in one command.

create scaffolds files, config, and starter scripts for the selected template and optionally installs dependencies.

When to use create

  • Start a new extension from scratch.
  • Spin up multiple proof-of-concept ideas quickly.
  • Standardize onboarding for teammates with consistent template defaults.

Create command capabilities

CapabilityWhat it gives you
Template scaffoldingStart from official templates with ready project structure
Dependency bootstrapInstall required packages automatically after scaffold
Path flexibilityCreate by project name or explicit folder path
Fast onboardingMove from empty folder to runnable extension quickly

Usage

npm
pnpm
yarn
npx extension@latest create <extension-name|extension-path> [options]

Command options

FlagAliasWhat it doesDefault
[path or name]-Project directory/name to create.required
--template <name>-tSelects template slug.default
--install [boolean]-Installs dependencies after scaffolding.true

Shared global options

Also supports global flags.

Example commands

npm
pnpm
yarn
npx extension@latest create my-extension --template=new-react
npm
pnpm
yarn
npx extension@latest create my-extension --template=init --install=false

Available templates

React

React icon

Build polished extension interfaces with React, strong tooling, and a mature component ecosystem.

Preact

Preact icon

Get a React-like workflow with a lighter runtime and smaller bundles.

Vue

Vue icon

Use single-file components and clear conventions for maintainable extension UIs.

Svelte

Svelte icon

Ship interactive UIs with concise components and minimal runtime overhead.

TypeScript

TypeScript icon

Add type safety for clearer refactors and long-term maintainability.

JavaScript

JavaScript icon

Start fast and ship quickly with the lightest setup, while keeping the path clear for rapid prototypes, production-ready features, and teams that want minimal ceremony.

Best practices

  • Start from a template that matches your UI/runtime needs to reduce setup drift.
  • Keep the first run small, then add extra tooling after verifying baseline command flow.

Next steps