Skip to content

CLI

The PETROVA CLI is the primary surface for invoking verbs. Everything in this section walks you through installing it, configuring credentials, and using it day-to-day.

PageWhat it covers
InstallClone, build, link the binary. ~5 minutes.
AuthPAT vs GitHub App. Required scopes per verb category.
Command referenceEvery command, flag, and exit code.
ConfigurationEnvironment variables.
Output formatsTable / --json / --format markdown.

Three responsibilities:

  1. Read governed repos via local clones (status, diagnose, validate, dashboard).
  2. Validate verb inputs against schemas before any side effect.
  3. Emit PRs through the GitHub Contents API for write verbs.

The CLI does not store state, does not run a daemon, does not persist anything between invocations except the ~/.petrova/diagnoses.jsonl cache used by propose_fix.

  • Quickstart — first-time end-to-end use.
  • Verb reference — the contracts the CLI implements.
  • Skills — Claude Code skill wrappers around the CLI.