CLI Reference
The fetchext CLI (command: fext) provides a comprehensive suite of tools for downloading, analyzing, and managing browser extensions.
Basic Usage
Commands
download
Download an extension from a web store.
Aliases: d
Arguments:
browser: The target browser store. Supported values:chrome(alias:c)edge(alias:e)firefox(alias:f)url: The full URL of the extension page.
Options:
-o, --output-dir <dir>: Directory to save the downloaded file (default: current directory).-m, --save-metadata: Save extension metadata (ID, version, name) to a JSON file.-x, --extract: Automatically extract the extension contents to a folder.--verify-hash <sha256>: Verify the downloaded file against a known SHA256 hash.--quiet: Suppress output.--verbose: Enable verbose logging.
Note: Downloads are resumable. If a download is interrupted, running the command again will resume from where it left off.
search
Search for extensions in a web store (currently supports Firefox).
Aliases: s
Options:
--json: Output results as JSON.--csv: Output results as CSV.
inspect
Inspect the metadata (manifest) of a downloaded extension file.
Aliases: i
Options:
--json: Output results as JSON.
preview
List the contents of an extension archive without extracting it.
Aliases: p
extract
Extract an existing extension file (.crx, .xpi) to a directory.
Aliases: x
batch
Download multiple extensions from a batch file.
Aliases: b
Options:
-w, --workers <n>: Number of parallel downloads (default: 4).
audit
Audit an extension for Manifest V3 compatibility and deprecated APIs.
Aliases: a
risk
Analyze permission risks and calculate a privacy score.
Aliases: r
scan
Scan an extension for known vulnerable third-party libraries (e.g., jQuery, Lodash).
analyze
Perform deep analysis on extension code.
Options:
--complexity: Calculate cyclomatic complexity of JavaScript files.--entropy: Calculate Shannon entropy to detect obfuscation/packing.--domains: Extract domains and URLs from source code.--secrets: Scan for potential secrets (API keys, tokens).--yara <path>: Scan against YARA rules (file or directory).--json: Output results as JSON.
report
Generate a comprehensive report for an extension.
Options:
-o, --output <file>: Output file path (default:<filename>_REPORT.md).--json: Output unified report as JSON.--yara <path>: Include YARA scan results in the report.
diff
Compare two extension versions.
verify
Cryptographically verify a CRX3 file signature.
locales
Inspect supported locales and message counts.
check
Check for updates of local extension files against the Web Store.
serve
Host the local repository as a Chrome/Edge Update Server.
update-manifest
Generate update.xml (Chrome/Edge) or updates.json (Firefox) for self-hosted extensions.
Aliases: um
mirror
Synchronize a local directory with a list of extension IDs.
convert
Convert extensions between formats.
Supported Formats: zip
optimize
Losslessly compress images within an extension directory.
timeline
Visualize the modification timeline of files within an extension.
graph
Generate a dependency graph of internal files.
stats
Analyze a directory of extensions for aggregate statistics.
explain
Get a detailed explanation and risk assessment for a specific permission.
plugin
Manage Python-based plugins.
Commands:
list: List installed plugins.install <path>: Install a plugin.enable <name>: Enable a plugin.disable <name>: Disable a plugin.remove <name>: Remove a plugin.
ui
Launch the terminal-based user interface (TUI).
tutorial
Launch the interactive TUI tutorial.
setup
Run the interactive configuration wizard.
config
Manage configuration settings.
schema
Get JSON schema for various outputs.
Types: config, audit, risk, history, scan.
clean
Clean up cache and temporary files.