Extension.js command guide

Choose the right command for the current phase of extension development, from first scaffold to production validation.

Command chooser

Goal Command Example
Scaffold a new project create npx extension@latest create my-extension --template=new-react
Develop with watch mode dev extension dev --browser=firefox
Build production artifacts build extension build --browser=chrome,firefox --zip
Build and launch production output start extension start --browser=edge
Launch existing build output only preview extension preview --browser=chrome

Typical developer flow

  1. create to bootstrap.
  2. dev for iterative coding and reload cycles.
  3. build for release artifacts.
  4. preview or start for production-like validation.

Command references

Next steps

Video walkthrough

Video demo soon: commands decision workflow