Skip to content

Use the CLI

Work in your workspace

Every workspace area from a terminal, a script or an AI agent: records, reviews and administration.

On this page

Commands

Workspace commands read grchero <area> <verb>, like gh. grchero help lists them all and grchero COMMAND --help shows the options of one.

Terminal
grchero finding list --mine
grchero change create --title "Release 2.4" --type release --risk medium \
  --summary "New billing page" --release v2.4.0 --env production
grchero change submit ID
AreaVerbs
orglist, view, use
projectlist, view, create, use
inboxlist, read
findinglist, view, create, edit, start, submit, reopen, close, decide
risklist, view, create
evidencelist, search, link, add
evidence-requestlist, view, create, submit, decide
exceptionlist, view, create, submit, withdraw, approve, reject, revoke
changelist, view, create, submit, approve, reject, implement, issue, close, cancel
assetlist, view, create, edit
controllist, view, create, evidence
frameworklist, requirements
vendorlist, view, create
vendor-reviewlist, view, decide
documentlist, view, versions
document-reviewlist, view, decide, publish
questionnairelist, questions
assessmentlist, findings
access-reviewlist, view, start, decide, complete
incidentlist, view, create, investigate, contain, resolve, reopen, note, decide
continuitylist, create, exercises, exercise
privacylist, create, processors
memberlist, invite, role, remove
tokenlist, revoke
agentsview, set

Every page

Each workspace page has a command, or a grchero api path for what is better done on the page itself.

PageFrom the terminal
Home and Projectsgrchero work, grchero project
Findingsgrchero finding
Risksgrchero risk
Evidencegrchero evidence, grchero evidence-request
Exceptionsgrchero exception
Changesgrchero change
Assetsgrchero asset, grchero vendor
Vendor reviewsgrchero vendor-review
Controlsgrchero control, grchero framework; testing with grchero api GET /controls/ID/testing
Assessmentsgrchero assessment; new ones with grchero api POST /assessments
Documentsgrchero document; writing stays in the Document wizard
Document reviewsgrchero document-review
Access reviewsgrchero access-review
Audit loggrchero api GET /audit-events (owners and admins, signed in as themselves; API tokens cannot read it)
Incidentsgrchero incident
Continuitygrchero continuity
Privacygrchero privacy
Subject requestsgrchero api GET /privacy/requests; closing one stays on the page
Questionnairesgrchero questionnaire; answers with grchero api GET /questionnaires/ID/responses
Inboxgrchero inbox
Tasksgrchero api GET /notifications/my-work
Settingsgrchero member, grchero token, grchero agents; the profile with grchero api GET /organizations/current/profile
Technical checks and reportsgrchero submit; grchero api GET /project-checks and GET /reports
CLI activitygrchero api GET /cli/activity
Architecturegrchero api GET /diagrams; drawing stays in the editor
Foundationgrchero api GET /organizations/current/baseline
Sharing, integrations and billinggrchero api GET /review-packages, GET /integrations, GET /billing

Choose the workspace and project

grchero org use switches your sign-in to another of your workspaces. grchero project use makes later commands in that workspace list and create records in one project. --org and --project change them for a single command, and --project none acts on the whole workspace.

Terminal
grchero org list
grchero org use acme
grchero project use "Customer portal"
grchero risk list --project none

Note: The default project is saved next to your sign-in, as the project's ID and name only.

Decisions wait for you

Reading and writing run at once, and new records start as drafts. Approving, rejecting, revoking, publishing, closing and every review decision need you to confirm that one request in your browser after signing in again. The CLI prints and opens the link and waits; a declined or expired request does nothing.

A review decision answers the newest submission, so an older one is never accepted by mistake.

Workflow commands send the version of the record they read, so a change made in the meantime is refused instead of overwritten. --version N acts only if the record is still the version you reviewed.

Terminal
grchero exception approve ID --note "Reviewed with the owner"
Output
This needs your confirmation in the browser before it runs:
  https://app.grchero.dev/confirm/…
Waiting for you to confirm…
Decision recorded.
Exception  Laptop rollout
Kind       policy
State      approved

For scripts and AI agents

grchero help --json describes every command: its options, choices, tier (read, write, decide, administer or local) and an example. --json prints the record or list as grcHero returns it, and a failure as {"error": {"code", "message", "details"}, "exit_code"} with grcHero's own error code. No command asks a question outside a terminal.

Outside a terminal, or with --no-wait, a decision does not wait: the CLI prints the link and exits with code 3. Show the link to the person; once they confirm, run the same command again with --confirmation ID.

Your workspace's AI agents setting decides what agents may do. An agent can ask a person to confirm a decision and never administers: members, tokens, the agent setting and access reviews are for people, after the same browser confirmation.

API tokens are created in the workspace, never from the CLI, so a secret never lands in a terminal or an agent's context. Invitation links go by email and are never printed.

Exit 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
grcHero CLI 0.7.3. Local checks, human review, verifiable evidence.