Skip to content

Reference

Commands

Every command and option in this release.

On this page

All commands

CommandWhat it doesNeeds sign-in
grchero scan [path]Review a project's configurationYes
grchero deps [path]Check locked dependencies for known vulnerabilities and malicious packagesYes
grchero rulesList the checks and their scopeNo
grchero report FILERead a saved JSON reportNo
grchero submit FILEPreview and send a saved report to your workspaceYes, a person
grchero workList the open work assigned to youYes
grchero evidence add FILEPreview and upload one evidence file, optionally linked to a controlYes
grchero <area> <verb>Work with every workspace area, from findings and change records to reviews and members; see Workspace commandsYes
grchero api METHOD PATHCall any workspace API endpoint; decisions wait for your browser confirmationYes
grchero mcp [--read-only]Serve your workspace to an AI agent over MCP; see AI agentsYes
grchero help [--json]List every command, with its tier; JSON for scripts and agentsNo
grchero loginSign in through the browserNo
grchero whoamiShow the workspace and API in useYes
grchero logoutRemove the saved sign-inNo
grchero doctorCheck the local setupNo
grchero --versionPrint the versionNo

scan

See Review a project for what each option does.

Terminal
grchero scan [path] [--dry-run] [--include PATTERN] [--exclude PATTERN]
             [--format text|json|sarif] [--output FILE] [--baseline FILE]
             [--fail-on none|low|medium|high]

submit

Terminal
grchero submit FILE [--project UUID] [--title TEXT] [--yes]
OptionBehavior
--project UUIDAttach the draft report to a project
--title TEXTReport title, 2 to 120 characters; defaults to the review date
--yesSend without asking; needed outside a terminal

report

Terminal
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.

Terminal
grchero api GET /exceptions
grchero api POST /exceptions/ID/decisions -f decision=approve -F expected_version=3
OptionBehavior
-f, --field key=valueA text field in the body
-F, --raw-field key=JSONA typed field, for example a number or true
--input FILESend a JSON object from a file as the body
--no-waitIf confirmation is needed, print the link and exit 3 instead of waiting (the default outside a terminal)
--confirmation IDRun again after confirming; waits until it is confirmed

deps

See Check dependencies for what is checked and what leaves your machine.

Terminal
grchero deps [path] [--format text|json|sarif] [--fail-on none|low|medium|high|critical]
             [--output FILE]
OptionBehavior
--formatText for people, JSON for scripts, SARIF for code scanning
--fail-on LEVELExit 1 when an advisory is at or above this severity; none (the default) never fails
--output FILEAlso save the JSON report to a new file; an existing file is never overwritten

work

Terminal
grchero work [--project UUID] [--format text|json] [--json]
OptionBehavior
--project UUIDOnly work in this project
--format json, --jsonPrint 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.

Terminal
grchero mcp [--read-only]
OptionBehavior
--read-onlyOffer 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.

Terminal
grchero help [--json]
grchero whoami
grchero doctor

Options every workspace command takes

Every grchero <area> <verb> command accepts these, in addition to its own options in the command reference.

OptionBehavior
--jsonPrint JSON for scripts and agents
--org WORKSPACEWorkspace ID or slug for this command only
--project PROJECTProject ID or name, or none; defaults to grchero project use
--no-waitIf confirmation is needed, print the link and exit 3 instead of waiting
--confirmation IDRun again after confirming in the browser

Exit codes

CodeMeaning
0Done
1Failed: grcHero refused the request or could not be reached
2Usage or local problem
3Waiting for your confirmation in the browser
4Not 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.

Terminal
grchero login [--organization ID_OR_SLUG] [--api-url URL] [--issuer URL]
              [--client-id ID] [--audience ID]
grcHero CLI 0.7.3. Local checks, human review, verifiable evidence.