CLI Commands
The GitHub Agentic Workflows CLI provides commands for inspecting, validating, and managing agentic campaigns.
Campaign Commands
Section titled “Campaign Commands”From the root of the repo:
gh aw campaign # List all agentic campaignsgh aw campaign security # Filter by ID or name substringgh aw campaign --json # JSON output
gh aw campaign status # Live status for all agentic campaignsgh aw campaign status incident # Filter by ID or name substringgh aw campaign status --json # JSON status output
gh aw campaign new my-campaign-id # Scaffold a new agentic campaign specgh aw campaign validate # Validate agentic campaign specs (fails on problems)gh aw campaign validate --no-strict # Report problems without failingList Campaigns
Section titled “List Campaigns”Display all agentic campaigns defined in .github/workflows/*.campaign.md:
gh aw campaignFilter by campaign ID or name:
gh aw campaign securityGet machine-readable JSON output:
gh aw campaign --jsonCheck Campaign Status
Section titled “Check Campaign Status”View live status of all agentic campaigns with their associated project boards:
gh aw campaign statusFilter status by campaign ID or name:
gh aw campaign status incidentGet status in JSON format:
gh aw campaign status --jsonCreate New Campaign
Section titled “Create New Campaign”Scaffold a new agentic campaign spec file interactively:
gh aw campaign new my-campaign-idThis creates .github/workflows/my-campaign-id.campaign.md with a basic structure.
Validate Campaigns
Section titled “Validate Campaigns”Validate all agentic campaign specs:
gh aw campaign validateBy default, validation fails if problems are found. For non-failing validation (useful in CI while you iterate):
gh aw campaign validate --no-strictCompilation and Orchestrators
Section titled “Compilation and Orchestrators”Agentic campaign specs and orchestrators: When agentic campaign spec files exist under .github/workflows/*.campaign.md, gh aw compile validates those specs (including referenced workflows) and fails if problems are found. By default, compile also synthesizes an orchestrator workflow for each valid spec that has meaningful details (e.g., go-file-size-reduction.campaign.md → go-file-size-reduction.campaign.g.md) and compiles it to a corresponding .lock.yml file. Orchestrators are only generated when the agentic campaign spec includes tracker labels, workflows, memory paths, or a metrics glob.
See the compile command documentation for details.
Alternative: GitHub Issue Forms
Section titled “Alternative: GitHub Issue Forms”For a low-code/no-code method, use the ”🚀 Start an Agentic Campaign” issue form in the GitHub UI. The form captures campaign intent with structured fields and can trigger an agent to scaffold the spec file automatically.
See the Getting Started guide for details.