CLI Reference All Tiers

Complete reference for all 230+ CLI commands

Quick Task Index

TaskCommand
Getting Started
Initialize a projectbpsai-pair init .
Check project statusbpsai-pair status
Validate setupbpsai-pair validate
Planning
Create a new planbpsai-pair plan new my-feature --type feature
List all plansbpsai-pair plan list
See plan progressbpsai-pair plan status
Tasks
List all tasksbpsai-pair task list
Get next taskbpsai-pair task next
Start a taskbpsai-pair task update TASK-001 --status in_progress
Complete a taskbpsai-pair task update TASK-001 --status done
Trello
Connect to Trellobpsai-pair trello connect
Start Trello taskbpsai-pair ttask start CARD-ID
Complete Trello taskbpsai-pair ttask done CARD-ID --summary "..."
Support
Create a support ticketbpsai-pair support create --type bug --title "..."
List your ticketsbpsai-pair support list
View ticket detailsbpsai-pair support show <id>
Open support portalbpsai-pair support open
Quality Control
Initialize QC structurebpsai-pair qc init
List test suitesbpsai-pair qc list
Validate suite specsbpsai-pair qc validate
View latest resultsbpsai-pair qc report
Engage
Run a sprint autonomouslybpsai-pair engage backlog.md --sprint 1
Review
Review a GitHub PRbpsai-pair review pr 123
Review current branchbpsai-pair review branch
Project Management
Start a work itembpsai-pair pm start CARD-ID
Complete a work itembpsai-pair pm done CARD-ID --summary "..."
View item hierarchybpsai-pair pm tree CARD-ID
Query
Query metricsbpsai-pair query metrics success_rate
Query tasksbpsai-pair query tasks --status in_progress
Sweep
Find dead code after changesbpsai-pair sweep
Sweep with auto-fixbpsai-pair sweep --fix
Sweep against specific refbpsai-pair sweep --since v2.23.0
Health & Fleet
Run health checkbpsai-pair doctor
Check fleet versionsbpsai-pair fleet check
Security
Scan for secretsbpsai-pair security scan-secrets
Enter contained modebpsai-pair contained-auto

Command Groups

GroupPurposeCount
Coreinit, feature, pack, status, validate, ci, context-sync, contained-auto, scan-secrets, scan-deps, upgrade, wizard, subagent, migrate, setup, engage, doctor, sweep16
PlanPlan creation, listing, status, estimation, sync8
TaskLocal task file management and archival12
SkillsSkill validation, listing, export, scoring8
GapsSkill gap detection and analysis4
OrchestrateMulti-agent orchestration, handoff, auto-run7
MetricsToken/cost tracking, velocity, burndown, accuracy9
BudgetBudget checking, estimation, status3
TimerSession timing and tracking5
BenchmarkPerformance benchmarking4
SecuritySecret scanning, dependency scanning, hooks4
ContainmentContained autonomy management3
TrelloBoard configuration, fields, webhooks18
ttaskTrello card lifecycle (start, done, block, check)9
GitHubPR creation, merging, linking, archival8
MCPMCP server for Claude Desktop3
QCBrowser-driven regression testing: init, list, validate, report4
ArchArchitecture enforcement and split suggestions2
LicenseLicense install, activate, machine binding, verify10
SubscriptionSubscription management (Stripe Billing Portal)2
SupportSupport tickets (create, list, show, open)4
ConfigConfiguration show, update, validate6
PresetProject preset management3
StateTask state machine management6
EnforceEnforcement gates2
SessionSession detection and context recovery3
CompactionContext compaction and recovery5
FeedbackEstimation feedback and calibration4
TelemetryTelemetry configuration and export4
WorkspaceMulti-project workspace management6
IntentIntent detection and flow suggestion3
SprintSprint completion and listing2
ReleaseRelease preparation and checklists3
StandupStandup generation and posting2
TemplateTemplate checking and listing2
CacheCache management (stats, clear, invalidate)3
AuditBypass audit log (summary, list, clear)3
MigrateProject migration1
SubagentSubagent gap detection1
ReviewCode review: PR, task, branch, auto-route4
FleetVersion compliance across workspace repos1
QueryQuery metrics, state, tasks, task-state, skill, qc-trends6
PMProject management: start, done, block, sync, status, children, tree, diagnostics, config, create, move, comment, check, set-field, link, unlink, action, sprint20
Total233

Core Commands

bash
# Initialize new project
bpsai-pair init my-project --preset bps

# Create feature branch
bpsai-pair feature add-auth --type feature

# Package context for AI agents
bpsai-pair pack --lite --out context.tgz

# Check status
bpsai-pair status

# Start contained autonomous session
bpsai-pair contained-auto

# Run holistic health check
bpsai-pair doctor
bpsai-pair doctor --fix    # Auto-fix fixable issues
bpsai-pair doctor --json   # JSON output

Engage Command

Parse a backlog and autonomously execute the sprint. See the Engage guide for full usage.

bash
# Execute a sprint from a backlog file
bpsai-pair engage backlog-sprint-28.md --sprint 28

# Dry-run: show plan without executing
bpsai-pair engage backlog.md --dry-run

# Control parallelism
bpsai-pair engage backlog.md --max-parallel 5

# Skip the Navigator planning phase
bpsai-pair engage backlog.md --skip-planning

# JSON output
bpsai-pair engage backlog.md --json

Review Commands

Code review commands for PRs, tasks, and branches. See the Review guide for full usage.

bash
# Review a GitHub PR by number
bpsai-pair review pr 146
bpsai-pair review pr 146 --post   # Post review to PR via gh
bpsai-pair review pr 146 --json   # Structured JSON output

# Review a task's changes
bpsai-pair review task T18.3
bpsai-pair review task             # Review uncommitted changes

# Review the current branch diff against base
bpsai-pair review branch
bpsai-pair review branch --base main

# Auto-route: detect PR number, task ID, or default to branch
bpsai-pair review auto 146         # Routes to review pr
bpsai-pair review auto T18.3       # Routes to review task
bpsai-pair review auto             # Routes to review branch

Planning Commands

bash
# Create feature plan
bpsai-pair plan new my-feature --type feature --title "My Feature"

# Show plan with progress
bpsai-pair plan status plan-2025-12-my-feature

# Sync to Trello
bpsai-pair plan sync-trello plan-2025-12-my-feature --dry-run

Task Commands

bash
# Get and start next task
bpsai-pair task next --start

# Update task status
bpsai-pair task update TASK-001 --status in_progress
bpsai-pair task update TASK-001 --status done

# Archive completed tasks
bpsai-pair task archive --completed

Skills Commands

bash
# List and validate
bpsai-pair skill list
bpsai-pair skill validate

# Export to other platforms
bpsai-pair skill export --all --format cursor
bpsai-pair skill export my-skill --format windsurf

Trello Commands (ttask)

bash
# List and show
bpsai-pair ttask list
bpsai-pair ttask show TRELLO-abc123

# Lifecycle
bpsai-pair ttask start TRELLO-abc123
bpsai-pair ttask done TRELLO-abc123 --summary "Implemented feature"
bpsai-pair ttask block TRELLO-abc123 --reason "Waiting for API"

# Comments
bpsai-pair ttask comment TRELLO-abc123 "50% complete"

Metrics Commands

bash
bpsai-pair metrics summary
bpsai-pair metrics breakdown --by model
bpsai-pair metrics export --format csv --output metrics.csv
bpsai-pair budget status

Security Commands

bash
bpsai-pair security scan-secrets --staged
bpsai-pair security scan-deps
bpsai-pair security install-hook
bpsai-pair contained-auto
bpsai-pair containment status
bpsai-pair containment rollback

QC Commands

Interactive browser regression testing powered by Claude in Chrome. Requires the Claude in Chrome extension (Chrome only).

For setup and full usage, see the QC Agent guide.

bash
# Scaffold QC directory structure with example suite and config
# Non-destructive: won't overwrite existing files
bpsai-pair qc init

# Discover all .qa.yaml suites in .paircoder/qc/suites/
bpsai-pair qc list
bpsai-pair qc list --tags smoke,regression   # Filter by tag
bpsai-pair qc list --json                    # Machine-readable output

# Validate YAML syntax and required fields for all suites
# Unresolved ${VAR} variables are allowed at validation time
bpsai-pair qc validate
bpsai-pair qc validate --json

# Display summary of latest QC run from .paircoder/qc/reports/
bpsai-pair qc report
bpsai-pair qc report --json

Deprecated aliases: bpsai-pair qa init|list|validate|report still works but prints a deprecation warning to stderr. Use bpsai-pair qc instead.

Architecture Commands

bash
# Check specific files
bpsai-pair arch check src/services/task.py

# Get split suggestions
bpsai-pair arch suggest-split src/large_module.py

Query Commands

Query project state, metrics, and tasks from the command line.

bash
# Query metrics
bpsai-pair query metrics success_rate
bpsai-pair query metrics estimation_accuracy --days 30
bpsai-pair query metrics agent_performance --task-type feature --json

# Query project state
bpsai-pair query state active-tasks
bpsai-pair query state current-plan --json

# Query tasks with filters
bpsai-pair query tasks --status in_progress
bpsai-pair query tasks --json

# Query task state transitions
bpsai-pair query task-state <task-id>

# Execute a query skill
bpsai-pair query skill <skill-name>

# Query QC historical trends and flaky scenarios
bpsai-pair query qc-trends

PM Commands

Unified project management operations. Works with any configured PM provider (Trello, etc.).

bash
# Lifecycle
bpsai-pair pm start CARD-ID          # Move to in_progress
bpsai-pair pm done CARD-ID --summary "Implemented feature"
bpsai-pair pm block CARD-ID --reason "Waiting for API"
bpsai-pair pm move CARD-ID --status review

# Information
bpsai-pair pm status                 # PM provider connection status
bpsai-pair pm children CARD-ID       # List children of a work item
bpsai-pair pm tree CARD-ID           # Display hierarchy tree
bpsai-pair pm diagnostics            # Run PM provider diagnostics
bpsai-pair pm config                 # Show resolved PM workflow configuration

# CRUD operations
bpsai-pair pm create --title "New item" --type task
bpsai-pair pm comment CARD-ID "Progress update"
bpsai-pair pm check CARD-ID --item "Acceptance criterion 1"
bpsai-pair pm set-field CARD-ID --field complexity --value 40

# Linking
bpsai-pair pm link PARENT-ID CHILD-ID [CHILD-ID...]
bpsai-pair pm unlink CHILD-ID

# Actions and sync
bpsai-pair pm action approve CARD-ID
bpsai-pair pm sync                   # Sync local tasks to PM provider

# Sprint lifecycle
bpsai-pair pm sprint start PLAN-ID
bpsai-pair pm sprint complete PLAN-ID

Fleet Commands

Check bpsai-pair version compliance across all repos in a workspace.

bash
# Check version compliance across workspace repos
bpsai-pair fleet check
bpsai-pair fleet check --upgrade    # Upgrade stale venvs
bpsai-pair fleet check --json       # JSON output

License Commands

bash
# Install and check license
bpsai-pair license install ~/Downloads/license.json
bpsai-pair license status

# Machine binding (v2.11+)
bpsai-pair license machine-id        # View machine identifier
bpsai-pair license machine-id --full # Full machine details
bpsai-pair license activate          # Activate this machine
bpsai-pair license activate --name "Work Laptop"
bpsai-pair license deactivate        # Free up machine slot
bpsai-pair license machines          # List activated machines
bpsai-pair license machines --json   # JSON output

# Validation troubleshooting
bpsai-pair license clear-cache       # Clear validation cache
bpsai-pair license verify-keypair    # Verify CLI/API key alignment

Subscription Commands

bash
# Check subscription status
bpsai-pair subscription status
bpsai-pair subscription status --json

# Manage subscription (opens Stripe Billing Portal)
bpsai-pair subscription manage           # Opens in browser
bpsai-pair subscription manage --no-browser  # Just print URL

Support Commands

bash
# Create a support ticket
bpsai-pair support create --type bug --title "Issue title" --description "Details"

# List your tickets
bpsai-pair support list
bpsai-pair support list --status open

# View ticket details
bpsai-pair support show <ticket-id>

# Open support portal in browser
bpsai-pair support open

Ticket types: bug, feature, question, billing, general. See the Support guide for details.

Environment Variables

VariablePurpose
TRELLO_API_KEYTrello API key
TRELLO_TOKENTrello OAuth token
GITHUB_TOKENGitHub personal access token
PAIRCODER_CONFIGOverride config file path
PAIRCODER_OFFLINEEnable offline mode (skip online validation)