Skip to content

CLI Overview

The AVC CLI is the primary interface — every other surface (VSCode extension, web UI, MCP server) calls these commands underneath. Each command supports --json for machine-readable output.

FlagDescription
--jsonEmit results as JSON to stdout instead of human-readable text
--helpShow help for any command

Errors are written to stderr; the process exits with code 1 on failure.

Every command that returns structured data accepts --json. The shape mirrors what’s documented per-command. Errors always include an error field:

{ "error": "snapshot 'snap-foo' not found" }

For scripts and agents, prefer --json — it’s stable across CLI text-output revisions.