Reference
Commands
Every command and option in this release.
On this page
All commands
| Command | What it does | Needs sign-in |
|---|---|---|
grchero scan [path] | Review a project's configuration | Yes |
grchero deps [path] | Check locked dependencies for known vulnerabilities and malicious packages | Yes |
grchero rules | List the checks and their scope | No |
grchero report FILE | Read a saved JSON report | No |
grchero submit FILE | Preview and send a saved report to your workspace | Yes, a person |
grchero work | List the open work assigned to you | Yes |
grchero evidence add FILE | Preview and upload one evidence file, optionally linked to a control | Yes |
grchero <area> <verb> | Work with every workspace area, from findings and change records to reviews and members; see Workspace commands | Yes |
grchero api METHOD PATH | Call any workspace API endpoint; decisions wait for your browser confirmation | Yes |
grchero mcp [--read-only] | Serve your workspace to an AI agent over MCP; see AI agents | Yes |
grchero help [--json] | List every command, with its tier; JSON for scripts and agents | No |
grchero login | Sign in through the browser | No |
grchero whoami | Show the workspace and API in use | Yes |
grchero logout | Remove the saved sign-in | No |
grchero doctor | Check the local setup | No |
grchero --version | Print the version | No |
scan
See Review a project for what each option does.
grchero scan [path] [--dry-run] [--include PATTERN] [--exclude PATTERN]
[--format text|json|sarif] [--output FILE] [--baseline FILE]
[--fail-on none|low|medium|high]submit
grchero submit FILE [--project UUID] [--title TEXT] [--yes]| Option | Behavior |
|---|---|
--project UUID | Attach the draft report to a project |
--title TEXT | Report title, 2 to 120 characters; defaults to the review date |
--yes | Send without asking; needed outside a terminal |
report
grchero report FILE [--format text|json|sarif]api
Calls any endpoint of the signed-in workspace and prints the JSON, like gh api. Paths stay inside your workspace's API, so your sign-in is never sent anywhere else.
Reading and writing run at once. Anything that decides (approve, reject, close, publish) or administers (members, tokens, settings) needs you to confirm that one request in the browser: the CLI prints and opens a link, you check what it will do and sign in again, and the CLI repeats the identical request once. A declined or expired request does nothing. API tokens and agents never administer.
grchero api GET /exceptions
grchero api POST /exceptions/ID/decisions -f decision=approve -F expected_version=3| Option | Behavior |
|---|---|
-f, --field key=value | A text field in the body |
-F, --raw-field key=JSON | A typed field, for example a number or true |
--input FILE | Send a JSON object from a file as the body |
--no-wait | If confirmation is needed, print the link and exit 3 instead of waiting (the default outside a terminal) |
--confirmation ID | Run again after confirming; waits until it is confirmed |
deps
See Check dependencies for what is checked and what leaves your machine.
grchero deps [path] [--format text|json|sarif] [--fail-on none|low|medium|high|critical]
[--output FILE]| Option | Behavior |
|---|---|
--format | Text for people, JSON for scripts, SARIF for code scanning |
--fail-on LEVEL | Exit 1 when an advisory is at or above this severity; none (the default) never fails |
--output FILE | Also save the JSON report to a new file; an existing file is never overwritten |
work
grchero work [--project UUID] [--format text|json] [--json]| Option | Behavior |
|---|---|
--project UUID | Only work in this project |
--format json, --json | Print JSON for scripts and agents |
mcp
Runs a local MCP server over standard input and output for an AI agent. It uses your sign-in, offers read and draft tools and never decides. See AI agents.
grchero mcp [--read-only]| Option | Behavior |
|---|---|
--read-only | Offer read tools only, no drafts |
help, whoami, doctor
grchero help lists every command with its tier; --json prints the same catalog, with exit codes, for scripts and agents. grchero whoami shows the workspace, API, kind of access and default project. grchero doctor checks the local setup and needs no sign-in.
grchero help [--json]
grchero whoami
grchero doctorExit codes
| Code | Meaning |
|---|---|
0 | Done |
1 | Failed: grcHero refused the request or could not be reached |
2 | Usage or local problem |
3 | Waiting for your confirmation in the browser |
4 | Not allowed for this sign-in, role or agent setting |
login
Installed releases need no options. The last four are for source installs and self-hosted deployments.
grchero login [--organization ID_OR_SLUG] [--api-url URL] [--issuer URL]
[--client-id ID] [--audience ID]