Skip to content

Use the CLI

Choose exactly what is reviewed

Keep repeatable include and exclude patterns in a project-local .grchero.json file.

On this page

Project configuration

Create .grchero.json in the folder you pass to scan. Both fields are lists of relative patterns with forward slashes. Unknown fields and invalid patterns are rejected. The file holds no credentials, so it is safe to commit.

.grchero.json
{
  "include": [
    "Dockerfile",
    "**/Dockerfile",
    ".github/workflows/*.yml",
    ".github/workflows/*.yaml"
  ],
  "exclude": ["examples/*", "fixtures/*"]
}

How patterns match

Patterns match whole paths from the project root. An asterisk matches any characters, including slashes: this is shell-style matching, not .gitignore syntax. **/Dockerfile matches nested Dockerfiles; Dockerfile matches the one at the root.

The CLI does not read .gitignore. It always skips .git, node_modules, .venv, venv, dist, build, .next, __pycache__, .local and graphify-out. Add other sensitive or generated paths to exclude.

--include replaces all configured includes. --exclude adds to configured exclusions. Exclusions always win.

Check your scope

Terminal
grchero scan . --dry-run --format json
grchero scan . --include 'services/*/Dockerfile' --exclude 'services/demo/*'
grcHero CLI 0.7.3. Local checks, human review, verifiable evidence.