HelpShelf

CLI commands

Reference for every helpshelf command and its options.

Run without installing via npx helpshelf <command>.

Commands

CommandWhat it does
helpshelfScan and activate in one step — the default for first-time setup
helpshelf initCreate the .helpshelf/ config directory. Runs entirely locally.
helpshelf scanAnalyse your codebase and write a snapshot
helpshelf pushUpload the snapshot and any markdown docs to your agent
helpshelf syncRe-scan and re-push — use this after changes
helpshelf statusShow your agent's state: knowledge count, last scan
helpshelf scoreReport your AI legibility score
helpshelf screenshotCapture screenshots of your running app

Common options

scan

npx helpshelf scan [options]
OptionEffect
-d, --dir <path>Project directory to scan (default .)
-o, --output <path>Snapshot output path (default .helpshelf/snapshot.json)
--no-readmeSkip README parsing
--no-depsSkip dependency analysis
--no-apiSkip API route detection
--no-envSkip environment variable detection
--verboseShow detailed output
--quietSuppress output, for scripting

push

npx helpshelf push [options]
OptionEffect
--email <email>Your HelpShelf account email
--domain <domain>Your app's domain, used for the help center URL
--docs-dir <path>Directory of markdown docs to include (default .helpshelf/docs)
--site <hash>Push to an existing site
--api-key <key>Use an existing API key
--dry-runShow what would be pushed without sending it

--dry-run is worth using the first time, so you can see exactly what leaves your machine.

score

npx helpshelf score

Takes --api-url if you're pointing at a non-default environment.

Attribution

--source <slug> is accepted on the root command, scan, and push. It tags where you came from — used when you've arrived from a specific tool or campaign. It's optional and affects nothing about your agent.

init doesn't accept it, since it never contacts the API.

Shipping docs alongside code

push picks up markdown files from .helpshelf/docs by default. If you keep handwritten docs in your repo, point --docs-dir at them and they'll be pushed as curated content on every sync — docs that version with your code.

Was this article helpful?

Still puzzling over something?

The agent has read this article — and everything around it. Ask a follow-up and it answers in seconds.