Repository navigation
CLI configuration
Every audit setting can come from a flag or from sitevet.toml. Same names in both: the flag is the key with dashes, so max_pages = 50 in the file is --max-pages 50 on the command line. Flags win.
sitevet init writes a commented file with every key at its default. sitevet reads ./sitevet.toml when it exists, or the file given with --config path/to/file.toml.
only = ["core-seo", "content", "links"]
max_pages = 50
delay_ms = 200
browser = true
[cli]
out = "report.html"
fail_under = 80
baseline = "last"Typos fail loudly. A misspelled key stops the run with its name and the closest valid key.
These map one to one to the library's Options struct.
| Key / flag | Default | What it does |
|---|---|---|
only / --only a,b
|
all | Categories to run |
skip / --skip a,b
|
none | Categories to leave out |
max_pages / --max-pages
|
100 | Pages to crawl, at most 10,000 |
max_depth / --max-depth
|
5 | Clicks from the start page |
concurrency / --concurrency
|
5 | Requests in flight per host |
delay_ms / --delay-ms
|
0 | Gap between request starts to one host |
timeout_ms / --timeout-ms
|
15000 | Per request |
user_agent / --user-agent
|
sitevet/<version> (+https://github.com/Abdulkader-Safi/sitevet) |
Sent with every request |
ignore_robots / --ignore-robots
|
false | Crawl paths robots.txt disallows |
crawl_sitemap / --crawl-sitemap
|
true | Seed the crawl from the sitemap |
allow_private_network / --allow-private-network
|
only when the start URL is private | Allow private and loopback addresses |
browser / --browser
|
false | Rendered checks in a local Chrome |
chrome_path / --chrome-path
|
auto-detect | Chrome or Chromium binary. Env: SITEVET_CHROME
|
render_crawl / --render-crawl
|
false | Read links and content after JavaScript runs. Needs browser
|
psi_key / --psi-key
|
none | PageSpeed Insights key. Prefer the SITEVET_PSI_KEY environment variable |
psi_max_pages / --psi-max-pages
|
5 | Pages sent to PageSpeed Insights |
media / --media
|
false | Image size probes (planned) |
media_max_requests / --media-max-requests
|
200 | Cap for the image size probes |
screenshots / --screenshots
|
false | Page screenshots (planned). Needs browser
|
screenshot_dir / --screenshot-dir
|
next to the report | Where screenshots go |
click_depth_warn / --click-depth-warn
|
3 | Pages deeper than this warn in the site-wide checks |
slow_resource_ms / --slow-resource-ms
|
300 | Requests slower than this are listed with --browser
|
runtime_threads / --runtime-threads
|
2 | Worker threads of the audit runtime |
True or false flags can be given bare (--browser) or with a value (--crawl-sitemap=false).
Categories: core-seo, content, links, images, structured-data, security, crawlability, url-structure, social-media, internationalization, legal, analytics, eeat, accessibility, performance.
These live under [cli] in the file, and have flags of their own:
| Key | Flag | What it does |
|---|---|---|
format |
--format html|md|json |
Report format. Default: from the --out extension, else HTML |
out |
--out, -o
|
Write the report to this file instead of stdout |
fail_under |
--fail-under 0-100 |
Exit 1 when the overall score is below this |
fail_on |
--fail-on error|warning |
Exit 1 when a finding of this severity fails |
baseline |
--baseline last|<id>|<file.json> |
Compare with an earlier run. See CLI history and baselines |
save |
--no-save |
Save the run to history. Default true |
update_check |
none | Ask about a new release before an audit at a terminal, at most once a day. Default true |
--quiet (-q) prints only errors.
| Variable | Use |
|---|---|
SITEVET_PSI_KEY |
PageSpeed Insights key. Never written to reports, history or logs |
SITEVET_CHROME |
Path to the Chrome binary |
SITEVET_HOME |
Folder for the run history (history.db) |
SITEVET_LOG |
Log filter for --verbose, for example sitevet=debug
|
SITEVET_NO_UPDATE_CHECK |
Any value turns off the update check before audits |
sitevet is MIT licensed. Source, issues and releases: github.com/Abdulkader-Safi/sitevet.
Getting started
CLI
Library
Reference