CLI Reference
All commands support --workspace for multi-repo operation across git submodules.
Commands
Section titled “Commands”certify init
Section titled “certify init”Bootstrap certification in a repository.
certify init [--path <dir>] [--pr] [--workspace]| Flag | Description |
|---|---|
--path | Repository root (default: current directory) |
--pr | Create initialization as a pull request via gh CLI |
--workspace | Discover submodules and initialize each one |
Creates:
.certification/config.yml.certification/policies/with auto-detected language policies.github/workflows/with PR, nightly, and weekly workflows
certify scan
Section titled “certify scan”Discover all certifiable code units.
certify scan [--path <dir>] [--workspace]| Flag | Description |
|---|---|
--path | Repository root (default: current directory) |
--workspace | Scan all configured submodules |
Saves discovered units to .certification/index.json.
certify certify
Section titled “certify certify”Evaluate, score, and certify code units.
certify certify [flags]| Flag | Description |
|---|---|
--skip-agent | Deterministic only, no LLM review |
--batch <n> | Process n units per run (0 = all) |
--reset-queue | Rebuild work queue from scratch |
--target <path> | Only certify units under given path(s) |
--diff-base <ref> | Only certify files changed since git ref |
--path <dir> | Repository root (default: current directory) |
--workspace | Certify all configured submodules |
The work queue is persistent — interrupted runs resume where they left off.
certify report
Section titled “certify report”Generate certification reports.
certify report [flags]| Flag | Description |
|---|---|
--format <fmt> | Output format: card (default), full, json, text, site |
--badge | Print shields.io badge markdown for your README |
--site | Generate a static HTML site (shorthand for --format site) |
--output <file> | Write to file instead of stdout |
--detailed | Include dimension breakdowns, risk analysis, expiring units |
--path <dir> | Repository root |
--workspace | Generate workspace-level report across submodules |
Every run saves .certification/REPORT_CARD.md and .certification/badge.json.
certify architect
Section titled “certify architect”AI-powered architectural review of your entire codebase.
certify architect [flags]| Flag | Description |
|---|---|
--model <id> | Override model for all phases |
--phase <n> | Run only phase n (1–6, default: all) |
--output <file> | Output file path (default: .certification/ARCHITECT_REVIEW.md) |
--verbose | Print full LLM responses |
--path <dir> | Repository root |
--workspace | Workspace-level review across submodules |
Requires an AI provider. See Architect Review →
certify expire
Section titled “certify expire”Mark overdue certifications as expired.
certify expire [--path <dir>] [--workspace]Checks all records against their expiration dates and updates status to expired where the certification window has elapsed.
certify models
Section titled “certify models”List available models from an AI provider.
certify models [flags]| Flag | Description |
|---|---|
--provider-url <url> | Provider API base URL |
--api-key-env <var> | Environment variable containing the API key |
Auto-detects providers if no URL is specified. Works with any OpenAI-compatible endpoint.
certify review
Section titled “certify review”Generate PR review annotation for GitHub Actions.
certify review [--path <dir>]Formats certification results as a PR comment. Used in CI workflows to post certification summaries on pull requests.
certify doctor
Section titled “certify doctor”Check setup and diagnose issues.
certify doctor [--path <dir>]Runs health checks on:
- Environment — Go compiler, Git
- Project setup —
.certification/directory, config, policies, index, records, report card, badge - Configuration — validates
config.yml, checks agent provider settings, scope patterns - Policy packs — validates all policy YAML files
- Optional tools —
golangci-lint, ESLint, ruff, cargo/clippy, pytest,ghCLI - Analysis tiers — per-language Tier 0/1/2 availability (Go always Tier 2; TS/Py/Rs Tier 2 if LSP server installed)
- AI providers — auto-detects cloud and local providers
Exits with code 1 if any check fails.
certify onboard
Section titled “certify onboard”Interactive onboarding guide.
certify onboard [--path <dir>]Shows a step-by-step checklist for setting up Certify in your project. Checks which steps are already complete and tells you what to do next:
- Initialize (certify init)
- Discover code units (certify scan)
- Run certification (certify certify)
- Generate report card (certify report)
- Architect review — optional (certify architect)
- Add badge to README (certify report —badge)
Re-run at any time to see your progress.
certify version
Section titled “certify version”Print version information.
certify versionWorkspace Mode
Section titled “Workspace Mode”The --workspace flag enables multi-repo operation across git submodules. When set, commands discover all submodules via git submodule status and operate on each configured one.
certify init --workspace # initialize all submodulescertify scan --workspace # scan all submodulescertify certify --workspace # certify all submodulescertify report --workspace # aggregate workspace report cardcertify architect --workspace # holistic architecture reviewcertify expire --workspace # expire across all submodulesSee Workspace Mode →