Skip to content

Use the CLI

Save and send a report

Keep a versioned JSON report, read it later, or send it to your workspace as an editable draft.

On this page

Save and read a report

--output always writes JSON, whatever the terminal shows, and never overwrites an existing file. grchero report reads a saved report again; it does not rescan the project.

Terminal
grchero scan . --output review.json
grchero report review.json
grchero report review.json --format json

Send a report to your workspace

grchero submit shows exactly what will be sent and asks before sending. The results appear in Technical checks beside browser checks, and the report arrives as an editable draft in Reports, optionally attached to a project. Sending the same report again never creates a duplicate.

Terminal
grchero submit review.json --project <project UUID> --title 'API review'
Output
Report to send to grcHero
  Workspace: Acme
  Project:   <project UUID>
  Title:     API review
  Scope:     2 paths, 2 observations

Paths that will be sent:
  .github/workflows/deploy.yml
  Dockerfile

Observations that will be sent:
  [MEDIUM] Workflow grants broad write permissions (.github/workflows/deploy.yml)
  [LOW] Container user needs review (Dockerfile)

Not sent: source text, detected credential values, file hashes.
Paths and observations can still be sensitive. Review them before confirming.

Send to Acme? [y/N]

Note: Sending needs a signed-in person; API tokens can run reviews but cannot send reports. Pass --yes to skip the question in scripts. You can also import the JSON file from Reports in the browser.

Report format

schema_version is 1. A report records the CLI and rules versions, the UTC creation time, the selected relative paths, the checks that applied and the observations. Each observation has its rule, severity, location, explanation, next step and a SHA-256 hash of the text reviewed. The hashes stay local when you send a report.

The list of checks that applied describes the selected files only. It is not whole-project coverage.

Warning: Paths, variable names and observations can reveal details about your systems. Share reports deliberately.

grcHero CLI 0.7.3. Local checks, human review, verifiable evidence.