CLI

This page lists the supported addfox CLI commands and options.

Basic Usage

addfox <command> [options]

Commands

CommandDescription
devStart development mode with hot reload support.
buildBuild production output.
testRun tests (forward args to rstest).

Common Options (Defaults + Config Mapping)

OptionBuilt-in Defaultaddfox.config FieldDescription
-b, --browser <browser>chromiumNo direct field (command-level target/launch selection)Target/launch browser. Examples: chromium, firefox, chrome, edge, brave.
-c, --cachetruecacheEnable browser profile cache for current run.
--no-cachefalse (for this run)cacheDisable browser profile cache for current run.
-r, --reportfalsereportEnable Rsdoctor build report.
--no-openfalse (default is auto-open)No direct fieldDo not auto-open browser.
--debugfalsedebugEnable debug mode (error monitor in dev).
--help--Print help.
--version--Print version.

Examples

# Development (Chromium)
addfox dev -b chromium

# Development (Firefox) with debug monitor
addfox dev -b firefox --debug

# Production build
addfox build -b chrome

# Build without opening browser
addfox build -b chrome --no-open

# Build with report
addfox build -r

Notes

  • --debug mainly affects dev mode.
  • --no-cache is useful for clean-state debugging; cache can still be set as project default in config.
  • -b/--browser does not have a dedicated config field and is intended as a command-level choice.