Use global flags to control CLI behavior consistently across commands, especially for telemetry and machine-readable output. Extension.js telemetry is intentionally anonymous and privacy-safe. It sends at most two event types (Documentation Index
Fetch the complete documentation index at: https://extension.js.org/llms.txt
Use this file to discover all available pages before exploring further.
command_executed and command_failed) with three properties each (command, success, version).
Global flag capabilities
| Capability | What it gives you |
|---|---|
| Telemetry control | Disable telemetry per-run, per-environment, or persistently |
| AI/help formatting | Return help output in readable or structured formats |
| Cross-command consistency | Apply the same control flags to create, dev, start, preview, and build |
Global options
| Flag | Description | Default |
|---|---|---|
--no-telemetry | Disable anonymous telemetry for a single command execution. | telemetry enabled |
--no-browser | Skip browser launch. Applies to dev, start, and preview. Sets EXTENSION_CLI_NO_BROWSER=1. | browser enabled |
--ai-help | Show AI-assistant oriented help output. | disabled |
--format <pretty|json> | Output format used with --ai-help. | pretty |
Telemetry opt-out options
You can disable telemetry in three ways (listed in precedence order):EXTENSION_TELEMETRY_DISABLED=1 in continuous integration (CI) when policy requires no telemetry across all runs.
Practical examples
Disable telemetry for a CI build
Generate machine-readable help for tooling
Keep readable help output for local debugging
Behavior notes
- The CLI parses global flags before command-specific options.
- See repository
TELEMETRY.mdand Telemetry and privacy for telemetry behavior and privacy details. - Use
extension telemetry statusto check the current consent state. - Command pages document command-specific flags separately.
- You can combine global flags with command-specific options.
- Automated tools (AI assistants and CI scripts) should read command readiness from
dist/extension-js/<browser>/ready.json, not from terminal log parsing.

