Extension.js command guide

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

Command chooser

GoalCommandExample
Scaffold a new projectcreatenpx extension@latest create my-extension --template=new-react
Develop with watch modedevextension dev --browser=firefox
Build production artifactsbuildextension build --browser=chrome,firefox --zip
Build and launch production outputstartextension start --browser=edge
Launch existing build output onlypreviewextension preview --browser=chrome
Install a managed browser runtimeinstallextension install chrome
Remove a managed browser runtimeuninstallextension uninstall 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.
  5. install or uninstall when you need to manage Extension.js browser runtimes explicitly.

Command references

Next steps

Video walkthrough