Skip to content

CLI Commands

The ado-aw CLI provides commands for initializing repositories, compiling pipelines, running MCP servers, executing safe outputs, and configuring Azure DevOps definitions.

These flags apply to all commands:

  • --verbose, -v — enable more detailed logging
  • --debug, -d — enable debug logging
  • --log-output-dir <path> — write log files to a specific directory

Initialize a repository for AI-first agentic pipeline authoring.

Terminal window
ado-aw init [--path <path>] [--force]

Options:

  • --path <path> — target directory
  • --force — continue even when repository checks would normally block initialization

Compile markdown into Azure DevOps pipeline YAML. If you omit the path, ado-aw auto-discovers agentic pipeline sources in the current directory.

Terminal window
ado-aw compile [<path>] [--output <path>]

Options:

  • --output, -o <path> — write the generated YAML to a specific file or directory
  • --skip-integrity — debug-only option to skip the generated integrity check step
  • --debug-pipeline — debug-only option to include extra pipeline diagnostics

Verify that a compiled pipeline still matches its source markdown.

Terminal window
ado-aw check <pipeline>

mcp <output_directory> <bounding_directory>

Section titled “mcp <output_directory> <bounding_directory>”

Run SafeOutputs as a stdio MCP server.

Terminal window
ado-aw mcp <output_directory> <bounding_directory> [--enabled-tools <name>]

Options:

  • --enabled-tools <name> — limit the server to specific tools; repeat to allow more than one

mcp-http <output_directory> <bounding_directory>

Section titled “mcp-http <output_directory> <bounding_directory>”

Run SafeOutputs as an HTTP MCP server.

Terminal window
ado-aw mcp-http <output_directory> <bounding_directory> [options]

Options:

  • --port <port> — port to listen on
  • --api-key <key> — API key used to authenticate requests
  • --enabled-tools <name> — limit the server to specific tools; repeat to allow more than one

Execute safe outputs as the final runtime stage.

Terminal window
ado-aw execute [options]

Options:

  • --source, -s <path> — source markdown file
  • --safe-output-dir <path> — directory containing safe output records
  • --output-dir <path> — directory for processed artifacts
  • --ado-org-url <url> — Azure DevOps organization URL override
  • --ado-project <name> — Azure DevOps project name override
  • --dry-run — validate inputs without making write calls

Detect agentic pipelines in a local repository and update the GITHUB_TOKEN pipeline variable on their Azure DevOps build definitions. The Copilot CLI engine needs this token to authenticate with GitHub.

For Azure DevOps API authentication, the command first tries the Azure CLI (az login session) and falls back to prompting for a PAT if unavailable.

Terminal window
ado-aw configure [options]

Options:

  • --token <token> — GitHub PAT value to apply (prompted if omitted). Must be a fine-grained PAT with Copilot Requests: Read permission.
  • --org <url> — Azure DevOps organization URL
  • --project <name> — Azure DevOps project name
  • --pat <pat> — PAT used for Azure DevOps API authentication (fallback if Azure CLI is unavailable)
  • --path <path> — repository path to inspect
  • --dry-run — preview changes without applying them
  • --definition-ids <ids> — comma-separated definition IDs to update
Terminal window
# Compile one source file
ado-aw compile agent.md
# Recompile all detected pipelines in the current directory
ado-aw compile
# Verify a generated pipeline
ado-aw check agent.lock.yml