Browse the docs
Documentation
How SiteCMD works, from adding your site to reading what it finds.
Install the CLI. Code audits run on your computer and need no account. Scanning a site needs a SiteCMD account.
npm install --save-dev @sitecmd/clicurl -fsSL https://sitecmd.com/install.sh | shScan a site
sitecmd scan --url http://localhost:4400SiteCMD - http://localhost:4400/Score: 94/100 (health scan, 73.6s) Category Score Issues──────────────────────────────────────────────────Security 97 1 medium, 2 lowPerformance 98 3 lowSeo 99 2 lowAccessibility 100 -Compliance 99 2 lowConfig 99 1 mediumPolish 100 - Issues (11 total): LOW security.email_exposure - Public email address in fetched HTML MED security.vibe.csrf - POST forms lack a recognized CSRF token marker LOW seo.hreflang - Hreflang HTML annotations need review LOW seo.page_speed_hints - Potential LCP image priority needs review ⋯
Audit your code
sitecmd audit .SiteCMD Code Scan - .Checked: 2026-11-18T05:44:14.133450+00:00Framework: AstroIssues: 16 total | critical 0 | high 0 | medium 16 | low 0 Medium (16)- [Operations · operations] Code Scan: pre-commit-hooks-missing - package.json- [Dependencies · supply-chain] Code Scan: undeclared-package - src/styles/color-literals.ts:3⋯
Get a fix
sitecmd fixYou are a web development expert helping fix a Web Scan issue.⋯## Issue Found**Category:** Security**Title:** POST forms lack a recognized CSRF token marker**Severity:** Medium - This is a MEDIUM severity issue.⋯## SiteCMD Fix Guidance1. Trace the form action and confirm whether authentication uses ambient cookies and whether framework or edge middleware already enforces CSRF protection⋯10 more issues available. Use `sitecmd fix --all` to see all.
Real output from sitecmd 2.0.0, run against a local preview of sitecmd.com.
Try it in your terminal
Every command here is in the CLI reference, shown with the output it printed.
Start a project
sitecmd init http://localhost:4400 --name sitecmd-local --yesInitialized SiteCMD project Name: sitecmd-local URL: http://localhost:4400 Config: …/.sitecmd/config.json Next steps: sitecmd scan Run a Web Scan sitecmd check Check for issues inline sitecmd watch Watch for score regressions
exit 0sitecmd 2.0.0
See what changed since the last scan
sitecmd scan --diffSiteCMD diff - http://localhost:4400/Score: 94 → 94 (+0) Remaining (11): LOW security.email_exposure - Public email address in fetched HTML MED security.vibe.csrf - POST forms lack a recognized CSRF token marker LOW seo.hreflang - Hreflang HTML annotations need review ⋯
exit 0sitecmd 2.0.0
Fail below a score
sitecmd check --fail-under 99Check failed: score 94/100 is below threshold 99 (0 critical issues)
exit 1sitecmd 2.0.0
Check before every push
sitecmd check --installInstalled pre-push hook at …/.git/hooks/pre-pushHook will run `sitecmd check` before every push.
exit 0sitecmd 2.0.0
Preview a template fix
sitecmd autofix apply --dry-runno recognized host configuration in this checkout (vercel.json); nothing to apply
exit 0sitecmd 2.0.0