Running other browsers from binary path
Run Chromium- and Gecko-family browsers beyond the default named targets by providing explicit binary paths.
Test custom browser binaries (for example Brave, Vivaldi, or Waterfox) from the same Extension.js workflow. Extension.js supports custom browser executables through binary flags and extension.config.* in dev, start, and preview.
How it works
Use one of these flags:
--chromium-binary <path>--gecko-binary <path>(alias:--firefox-binary <path>)
These binary flags override named browser selection at runner level.
Binary capabilities
CLI examples
You can also use them with start and preview.
Configure in extension.config.*
You can also place binary paths in command blocks:
Target mapping behavior
Binary hints map to engine targets:
chromiumBinary->chromium-basedgeckoBinary/firefoxBinary->gecko-based
If both are provided, Chromium binary resolution is applied first.
Available browsers
Common browsers you can run with binary flags:
Important constraints
chromium-basedrequires a validchromiumBinarypath.gecko-based/firefox-basedrequire a validgeckoBinarypath.- Invalid paths fail fast with a clear CLI/runtime error.
builddoes not accept binary flags; binary-based launching applies todev,start, andpreview.
Best practices
- Pair binaries with explicit browser target: Use
--browser=chromium-basedor--browser=gecko-basedfor predictable intent. - Use absolute paths: Avoid shell-dependent path resolution issues.
- Version-pin in CI runners: Keep browser binary paths deterministic for automated checks.
- Combine with profile/flags carefully: Reuse the same profile and flag strategy used for named browser targets.
Next steps
- Check out the browser preferences to further configure your environment.
- Learn more about Browser profile.
