Skip to content

adtk CLI Overview

adtk provides a full-featured command-line interface for Azure DevOps. All commands support a --json flag for raw JSON output, making them composable with other tools.

Before using any command, authenticate with adtk auth or set the AZURE_DEVOPS_ORG and AZURE_DEVOPS_PAT environment variables.

FlagDescription
--jsonOutput raw JSON instead of formatted tables
--versionPrint adtk version
CommandAliasesDescription
authAuthenticate with Azure DevOps
statusShow current authentication status
logoutLog out and remove stored credentials
mcpStart the MCP server (stdio or HTTP)
work-itemswiManage work items (get, list, types, my, comments, metrics)
reposManage Git repositories (list, get, branches, tree, commits, policies, tags)
pull-requestspr, prsManage pull requests (list, get, reviewers)
pipelinespipeManage CI/CD pipelines (list, get, runs, definitions, var-groups, environments)
wikiManage wiki pages (list, get, pages)
searchSearch code, work items, WIQL, and saved queries
iterationsiter, sprintsManage iterations/sprints (list, current, settings)
boardsManage Kanban boards (list, columns)
projectsprojManage projects and teams (list, get, teams)
attachmentsattachManage work item attachments (list)
test-planstpManage test plans, suites, and cases
securityManage Advanced Security alerts