azure-devops-cli

Manage Azure DevOps projects, repos, pipelines, and work items via the Azure CLI.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/lettucebo/Skills --skill azure-devops-cli-lettucebo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: azure-devops-cli
Source: https://github.com/lettucebo/Skills/tree/main/skills/azure/azure-devops-cli
Command: npx skills add https://github.com/lettucebo/Skills --skill azure-devops-cli-lettucebo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing Azure DevOps resources through the web portal is slow and hard to automate. This Skill provides complete command references for the Azure CLI DevOps extension so an AI agent can create pull requests, run pipelines, update work items, and configure security directly from the terminal. ## Core Features & Use Cases - Repos & Pull Requests: Create, review, vote on, and complete PRs, manage branch policies, and import Git repositories. - Pipelines & Builds: Create and run pipelines, manage variables and variable groups, download artifacts, and monitor runs. - Boards & Organization: Query and update work items with WIQL, manage iterations, teams, users, security permissions, service endpoints, and wikis. - Use Case: Ask the agent to create a PR from your current branch, link work items, add reviewers, enable auto-complete, and then watch the pipeline run until it succeeds. ## Quick Start Use the azure-devops-cli skill to create a pull request from my current branch to main and link work item 1234.

Frequently Asked Questions about azure-devops-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a pull request with the Azure DevOps CLI?▼

Run az repos pr create with --repository, --source-branch, --target-branch, and --title. You can also add reviewers, link work items, set labels, mark it as draft, and enable auto-complete with az repos pr update --auto-complete true.

How to authenticate the Azure CLI with Azure DevOps?▼

Use az devops login --organization https://dev.azure.com/{org} with a PAT token, or pipe the token via echo $PAT | az devops login. Then set defaults with az devops configure --defaults organization and project to avoid repeating flags.

Why do long work item comments fail on Windows with az commands?▼

On Windows az resolves to az.cmd, and cmd.exe caps command lines at about 8191 characters, truncating long --discussion or --description values. Use azps.ps1 in PowerShell, a native --file-path flag where available, or az devops invoke with --in-file.

Can I query Azure DevOps work items with WIQL from the CLI?▼

Yes, az boards query --wiql accepts full WIQL statements such as selecting work items assigned to @Me in a given state. Combine with --output tsv and JMESPath --query to feed IDs into bulk update scripts.

How do I run an Azure Pipeline and wait for it to finish?▼

Start it with az pipelines run --name {pipeline} --query "id" -o tsv to capture the run ID, then poll az pipelines runs show --run-id until the status is no longer inProgress or notStarted, and check the result field.

Does the Azure DevOps CLI support branch policies?▼

Yes, az repos policy supports approver-count, build validation, work-item-linking, required-reviewer, merge-strategy, case-enforcement, comment-required, and file-size policies. Each is created per repository and branch with blocking and enabled flags.