LinuxCommandLibrary

web-ext

TLDR

Run extension in Firefox

$ web-ext run
copy
Run in specific Firefox
$ web-ext run --firefox=[/path/to/firefox]
copy
Build extension
$ web-ext build
copy
Lint extension
$ web-ext lint
copy
Sign extension
$ web-ext sign --api-key=[key] --api-secret=[secret]
copy
Run from specific directory
$ web-ext run -s [extension/]
copy
Run with verbose output
$ web-ext run -v
copy

SYNOPSIS

web-ext command [--source-dir dir] [options]

DESCRIPTION

web-ext develops Firefox extensions. It runs, builds, and signs extensions.
Run mode launches Firefox with extension loaded. Auto-reloads on changes.
Building creates distribution zip. Ready for submission.
Linting checks for common issues. Manifest errors, deprecated APIs.
Signing submits to Mozilla. Required for distribution outside AMO.

PARAMETERS

run

Run in browser.
build
Package extension.
lint
Check for issues.
sign
Sign for distribution.
-s, --source-dir DIR
Extension source.
--firefox PATH
Firefox binary.
-v, --verbose
Verbose output.
--api-key KEY
AMO API key.
--api-secret SECRET
AMO API secret.

CAVEATS

Firefox-specific tool. Signing needs AMO account. Some features need Nightly.

HISTORY

web-ext was created by Mozilla for WebExtension development. It simplifies the extension development workflow.

SEE ALSO

firefox(1), npm(1)

Copied to clipboard