HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

web-ext — Manage web extension development. More information: <https://github.com/mozilla/web-ext>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddevelopmentclimanageextensionwebmoreweb-ext

Problem

How to use the web-ext command: Manage web extension development. More information: <https://github.com/mozilla/web-ext>.

Solution

web-ext — Manage web extension development. More information: <https://github.com/mozilla/web-ext>.

Run the web extension in the current directory in Firefox:
web-ext run


Run a web extension from a specific directory in Firefox:
web-ext run --source-dir {{path/to/directory}}


Display verbose execution output:
web-ext run --verbose


Run a web extension in Firefox Android:
web-ext run --target firefox-android


Lint the manifest and source files for errors:
web-ext lint


Build and package the extension:
web-ext build


Display verbose build output:
web-ext build --verbose


Sign a package for self-hosting:
web-ext sign --api-key {{api_key}} --api-secret {{api_secret}}

Code Snippets

Run the web extension in the current directory in Firefox

web-ext run

Run a web extension from a specific directory in Firefox

web-ext run --source-dir {{path/to/directory}}

Display verbose execution output

web-ext run --verbose

Run a web extension in Firefox Android

web-ext run --target firefox-android

Lint the manifest and source files for errors

web-ext lint

Context

tldr-pages: common/web-ext

Revisions (0)

No revisions yet.