Sonjoo CLI and project configuration features
The Sonjoo CLI runs audits, collects and analyzes crawl snapshots, and reads local report history. Use it for repeatable audits from a shell or CI job. Run sonjoo --version and sonjoo <command> --help to confirm the features in your installed binary.
Audit and report from the terminal
Section titled “Audit and report from the terminal”| Task | Command | Scope and requirements |
|---|---|---|
| Check a URL or a linked site | sonjoo audit URL or sonjoo audit URL --crawl |
Supply an authorized HTTP(S) URL. Use --categories to narrow the checks, --question for entry-page passage matching, or --render to enable Chromium measurements. |
| Collect crawl snapshots for later analysis | sonjoo crawl URL |
Store fetched pages and crawl state under the default working-directory location or a custom --output directory. Collection runs before analysis. |
| Resume or analyze saved snapshots | sonjoo crawl --resume ID and sonjoo analyze ID |
Reuse the stored crawl scope and settings when resuming. Analyze a particular ID or use sonjoo analyze --latest; pass --json for structured analysis output. |
| List or open saved reports | sonjoo report --list --format json or sonjoo report ID --format json |
Query up to 100 saved audits. --project and --since filter the list. A detailed JSON report wraps evidence in result. |
| Compare a domain’s saved audits | sonjoo compare DOMAIN --against ID --json |
Choose an explicit baseline or use the prior report. --trend shows up to 20 recent scores. --fail-on-regression requires comparable profiles before it flags a regression. |
| Look up a rule and its settings | sonjoo explain core-title-present --json or sonjoo explain --list core |
Look up the stable ID, description, weight, fix guidance, and supported options without fetching a website. |
Use --format and --output for console text, JSON, HTML, Markdown, or AI-readable text. When you explicitly select a format, also pass --output if you want a file. --no-save skips audit history, and a requested report file is still written. Check the command reference, the rule catalog, and exit codes for automation.
Choose crawl limits and browser settings
Section titled “Choose crawl limits and browser settings”An audit crawl defaults to 10 pages, 3 concurrent fetches, and a 30-second request timeout. audit --max-pages accepts 1–1,000. A project setting or the standalone crawl --max-pages can allow up to 10,000. audit --max-duration accepts 1–86,400 seconds for crawl collection. Without a positive setting or an explicit duration flag, a CLI crawl audit has no overall collection deadline. For audit, --concurrency accepts 1–20 and --timeout accepts 1,000–120,000 milliseconds. The project crawler.timeout_ms can accept up to 300,000 milliseconds.
Use --render or --cwv for browser evidence. --mobile and --simulate-interaction also enable rendering and apply their specialized profiles to single-page audits. Browser checks require an installed compatible Chromium or Chrome executable. Audit and crawl modes · Enable browser measurements
Configure repeatable projects
Section titled “Configure repeatable projects”sonjoo init --yes creates sonjoo.toml. Use --preset default, blog, ecommerce, or ci to start with workload-specific settings. Review the generated file before running it. The ci preset disables robots compliance and external link checking, so use it only when those choices suit the authorized target.
| Configuration area | What you can control |
|---|---|
[project] |
Set a project name for reporting and declare project domains. Use crawler include/exclude settings to limit the crawl itself. |
[crawler] |
Set page and request budgets, request and per-host concurrency and delays, URL path filters, query-parameter handling, user agent, robots compliance, crawl-delay handling, and the maximum accepted Retry-After wait. |
[rules] and [rules.override] |
Select rule IDs or patterns and set per-rule report priority or fail_ci. If a rule matches both enable and disable, disable wins. An excluded required rule causes a configuration error. |
[rule_options] |
Override supported per-rule settings such as description length, title uniqueness eligibility, or thresholds. Use sonjoo explain RULE_ID for the options a rule exposes. |
[external_links] |
Enable or disable outgoing link checks and set timeout, concurrency, and cache lifetime. |
[custom] |
Add site-specific searches and field extractions, including required search patterns for CI. Custom search and extraction |
[output] and [ci] |
Select output format, path, and history retention, and set minimum score and crawl coverage thresholds. CI gates |
For commands that load configuration, values apply in order from built-in defaults, user $SONJOO_HOME/settings.json, the nearest project sonjoo.toml (or the explicit --config file), the current working directory’s .sonjoo/settings.json, and then supported command flags. sonjoo config show --json or sonjoo config --list shows the effective result; sonjoo config validate --config ./sonjoo.toml diagnoses invalid values. Use sonjoo config KEY VALUE --local or --global for persistent overrides. Configuration example and precedence
Launch or diagnose local components
Section titled “Launch or diagnose local components”| Command | Purpose |
|---|---|
sonjoo desktop, sonjoo desktop status, sonjoo desktop stop |
Open the dashboard in the default browser, find its URL, or control the dashboard server started by the desktop launcher. |
sonjoo serve --no-open --port 7360 |
Run the dashboard and local HTTP API in the current terminal. --audit URL can start an audit at launch. |
sonjoo mcp |
Start the stdio MCP server for a local client. |
sonjoo self doctor --verbose and sonjoo db stats --verbose |
Check the installation, browser discovery, rule inventory, and local SQLite history or link-cache data. Doctor reports Chromium as optional until a browser measurement requires it. |
sonjoo donate |
Show optional Sonjoo project support instructions. The dashboard Donate page lists available dashboard transfer options. |
