Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 web-ext

查看 web-ext 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install web-ext

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install web-ext

MacPorts ports tree · devel/web-ext/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#web-ext

nixpkgs package indexes · pkgs/by-name/we/web-ext/package.nix · 来源: api.github.com

概览

软件包摘要

Command-line tool to help build, run, and test web extensions

命令和别名

  • web-ext

历史

项目历史与用法

web-ext is Mozilla's command-line tool for building, running, testing, packaging, and signing browser extensions. It grew out of Firefox's WebExtensions transition, giving add-on developers a repeatable CLI workflow around temporary installs, automatic reloads, linting, build artifacts, and submission to addons.mozilla.org.

项目历史

Mozilla created the public web-ext repository and npm package in February 2016, while WebExtensions support was still stabilizing in Firefox. Mozilla's April 2016 add-ons blog described WebExtensions in Firefox 48 and pointed to web-ext as the command-line tool that would automate reloads during add-on development.

The 1.0.0 npm release landed in April 2016. By July 2016, Mozilla was already describing web-ext 1.0 as announced and following up with automatic extension reloading and source linting, two features that became central to the tool's everyday value.

The tool continued as part of Firefox Extension Workshop documentation rather than as an abandoned migration helper. By 2026, npm showed a long release history through the 10.x series, while the official command reference documented the current major-version command set.

采用历史

web-ext became the standard Mozilla-supported CLI for WebExtension developers because it matches the repetitive tasks of extension work: run the extension in a temporary Firefox profile, watch files, reload after edits, package the source as a zip, and sign or submit builds for addons.mozilla.org.

The broader adoption story is tied to Firefox's move away from legacy extension systems toward the cross-browser WebExtensions model. Even when an extension targets multiple browsers, web-ext remains useful for Firefox-specific testing, AMO signing, Android extension testing, and making Firefox profile state disposable during development.

使用方式

The common development loop is to change into an extension source directory and run `web-ext run`, which starts Firefox with the extension temporarily loaded and reloads it after source changes. When the extension is ready, `web-ext build` creates a package and `web-ext sign` can use addons.mozilla.org API credentials to produce or submit signed artifacts.

The tool also supports configuration files and package.json configuration, so teams can put source directories, ignore patterns, signing settings, and other options under version control or local developer configuration. This makes it a small but important bridge between browser-extension code and ordinary command-line build automation.

为什么软件包爱好者会关心

web-ext matters in package-manager culture because it turns a browser UI workflow into a scriptable developer tool. Installing it with npm, Homebrew, MacPorts, or Nix lets extension developers use the same shell habits they use for compilers, linters, and bundlers, while still targeting Firefox's extension runtime and AMO publishing requirements.

时间线

  • 2016-02: Mozilla created the public web-ext repository and first npm package.
  • 2016-04: web-ext 1.0.0 was published as Firefox 48-era WebExtensions support stabilized.
  • 2016-07: Mozilla documented follow-up work adding automatic reload and linting to the young tool.
  • 2024: The npm release stream reached web-ext 8.x, matching a separately documented v8 command reference.
  • 2026: npm listed web-ext 10.4.0 as the current package version.

Related projects

  • web-ext sits beside Mozilla's addons-linter, addons.mozilla.org signing APIs, MDN WebExtensions documentation, and browser-specific extension debugging pages such as about:debugging. It is also adjacent to cross-browser extension frameworks that eventually call into browser-specific build or signing steps.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Linux
~/.web-ext-config.mjs./web-ext-config.mjs./.web-ext-config.cjs./package.json
macOS
~/.web-ext-config.mjs./web-ext-config.mjs./.web-ext-config.cjs./package.json
Windows
C:\Users\<username>\.web-ext-config.mjs.\web-ext-config.mjs.\.web-ext-config.cjs.\package.json

Credential files

Credential-bearing paths to review before unattended agent runs.

Linux
~/.web-ext-config.mjs./web-ext-config.mjs./.web-ext-config.cjs./package.json
macOS
~/.web-ext-config.mjs./web-ext-config.mjs./.web-ext-config.cjs./package.json
Windows
C:\Users\<username>\.web-ext-config.mjs.\web-ext-config.mjs.\.web-ext-config.cjs.\package.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
web-extcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本10.5.0
管理器更新时间2026-07-11
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/mozilla/web-ext

安装元数据

软件包元数据

软件包键brew:web-ext
版本10.5.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/web-ext
主页https://github.com/mozilla/web-ext
仓库https://github.com/mozilla/web-ext
上游文档https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext
许可证MPL-2.0
源码归档https://registry.npmjs.org/web-ext/-/web-ext-10.5.0.tgz
最后更新2026-07-11T11:03:03Z
Pulseupdated
依赖node, terminal-notifier
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameweb-ext
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

web-ext

nix profile install nixpkgs#web-ext
  • normalized package name match
  • 匹配方式:Web Ext
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/we/web-ext/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

web-ext

sudo port install web-ext
  • normalized package name match
  • 匹配方式:Web Ext
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/web-ext/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment