Run reports
Use the command line
Run a report, inspect its input schema, and choose an output format. Commands here use the project-local installation.
Discover commands and report inputs
npx --no-install gwg-seo --help
npx --no-install gwg-seo reports list
npx --no-install gwg-seo reports describe site.crawlThe report schema is the authority for accepted input. Unknown properties are rejected. Use gwg-seo start for interactive guidance in a terminal; in automation, it prints guidance without prompting. Prefix it with npx --no-install for a local installation.
Run a report
npx --no-install gwg-seo reports run site.crawl \
--url https://www.example.com/ --max-pages 20 --max-depth 3The convenience commands audit URL and crawl URL map to page.audit and site.crawl. For schema fields without a dedicated flag, pass a JSON object through --params:
npx --no-install gwg-seo reports run site.sitemap \
--params '{"url":"https://www.example.com/sitemap.xml","maxUrls":100}'Choose how to keep the output
| Option | Behavior |
|---|---|
--format json | Default. Includes coverage, data, and findings. |
--format html | A standalone, escaped report for a browser. |
--format markdown | Text suitable for a review document. |
--output ./new-file | Create a new output file. Existing files are not overwritten. |
--save | Store a snapshot under your local GWG SEO data directory. |
Formatting applies to reports. Commands such as reports list return JSON. Saved snapshots retain the structured report, even when the display format is HTML or Markdown.
Handle exit status and partial results
Command errors are JSON on stderr with a nonzero exit status. A completed audit exits successfully even when it finds website defects. A crawl can also complete with per-URL failures or partial coverage, so inspect the returned report rather than using exit status as a site-health score.
Use doctor to inspect local setup without a network call. For recurring runs, arrange scheduling in your own system; GWG SEO does not include a hosted scheduler.
