Repository navigation
Getting Started
Alexandr Krikun edited this page Oct 26, 2026
·
1 revision
Node.js 18 or newer. No other dependencies.
# one-off run
npx github:ksanyok/robots-generator --preset wordpress --block-ai
# global CLI
npm install -g github:ksanyok/robots-generator
# as a library in your project
npm install github:ksanyok/robots-generatorrobots-generator --preset wordpress --block-aiThe generated file is written to standard output (or to the file given with --out); lint messages go to standard error, so piping the output stays clean. ! warnings flag risky rules, ✖ errors mean a rule will not work as intended (exit code 1).
| Code | Meaning |
|---|---|
| 0 | No errors (warnings allowed unless --strict) |
| 1 | Errors found (or warnings with --strict) |
| 2 | Bad arguments or the check could not run |
A Shopify-style store that also blocks SEO bots
robots-generator -p shopify --block-seo -s https://shop.example.com/sitemap.xml -o robots.txtStaging: block everything
robots-generator -p staging -o public/robots.txtFrom a JSON config kept in your repo
robots-generator --config robots.config.json -o public/robots.txtUse the online Robots.txt Generator.
Home · Getting started · FAQ · Troubleshooting · Online tool