azure-devops-cli by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill azure-devops-cli使用 Azure CLI 的 Azure DevOps 扩展来管理 Azure DevOps 资源。
CLI 版本: 2.81.0 (截至 2025 年当前版本)
# Install Azure CLI
brew install azure-cli # macOS
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash # Linux
# Install Azure DevOps extension
az extension add --name azure-devops
# 使用 PAT 令牌登录
az devops login --organization https://dev.azure.com/{org} --token YOUR_PAT_TOKEN
# 设置默认组织和项目(避免重复使用 --org/--project)
# 注意:旧版 URL https://{org}.visualstudio.com 应替换为 https://dev.azure.com/{org}
az devops configure --defaults organization=https://dev.azure.com/{org} project={project}
# 列出当前配置
az devops configure --list
az devops # 主要的 DevOps 命令
├── admin # 管理(横幅)
├── extension # 扩展管理
├── project # 团队项目
├── security # 安全操作
│ ├── group # 安全组
│ └── permission # 安全权限
├── service-endpoint # 服务连接
├── team # 团队
├── user # 用户
├── wiki # Wiki
├── configure # 设置默认值
├── invoke # 调用 REST API
├── login # 身份验证
└── logout # 清除凭据
az pipelines # Azure Pipelines
├── agent # 代理
├── build # 构建
├── folder # 流水线文件夹
├── pool # 代理池
├── queue # 代理队列
├── release # 发布
├── runs # 流水线运行
├── variable # 流水线变量
└── variable-group # 变量组
az boards # Azure Boards
├── area # 区域路径
├── iteration # 迭代
└── work-item # 工作项
az repos # Azure Repos
├── import # Git 导入
├── policy # 分支策略
├── pr # 拉取请求
└── ref # Git 引用
az artifacts # Azure Artifacts
└── universal # 通用包
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
根据用户的任务阅读相关的参考文件。每个文件都包含其领域内完整的命令语法和示例。
| 文件 | 何时阅读 | 涵盖内容 |
|---|---|---|
references/repos-and-prs.md | 仓库、分支、拉取请求、分支策略 | 仓库、导入、拉取请求(创建/列表/投票/审阅者/策略)、Git 引用、分支策略 |
references/pipelines-and-builds.md | 流水线、构建、发布、制品 | 流水线增删改查、运行、构建、发布、制品下载/上传 |
references/boards-and-iterations.md | 工作项、冲刺、区域路径 | 工作项(WIQL/创建/更新/关系)、区域路径、迭代、团队迭代 |
references/variables-and-agents.md | 流水线变量、代理池 | 流水线变量、变量组、流水线文件夹、代理池/队列 |
references/org-and-security.md | 项目、团队、用户、权限、Wiki | 项目、扩展、团队、用户、安全组/权限、服务端点、Wiki、管理 |
references/advanced-usage.md | 输出格式化、JMESPath 查询 | 输出格式、JMESPath 查询(基础 + 高级)、全局参数、通用参数、Git 别名 |
references/workflows-and-patterns.md | 自动化脚本、最佳实践、错误处理 | 常见工作流、最佳实践、错误处理、脚本模式、真实示例 |
每周安装量
7.9K
仓库
GitHub 星标数
26.7K
首次出现
2026 年 1 月 23 日
安全审计
安装于
gemini-cli7.7K
codex7.7K
opencode7.7K
github-copilot7.7K
cursor7.6K
kimi-cli7.6K
Manage Azure DevOps resources using the Azure CLI with the Azure DevOps extension.
CLI Version: 2.81.0 (current as of 2025)
# Install Azure CLI
brew install azure-cli # macOS
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash # Linux
# Install Azure DevOps extension
az extension add --name azure-devops
# Login with PAT token
az devops login --organization https://dev.azure.com/{org} --token YOUR_PAT_TOKEN
# Set default organization and project (avoids repeating --org/--project)
# Note: Legacy URL https://{org}.visualstudio.com should be replaced with https://dev.azure.com/{org}
az devops configure --defaults organization=https://dev.azure.com/{org} project={project}
# List current configuration
az devops configure --list
az devops # Main DevOps commands
├── admin # Administration (banner)
├── extension # Extension management
├── project # Team projects
├── security # Security operations
│ ├── group # Security groups
│ └── permission # Security permissions
├── service-endpoint # Service connections
├── team # Teams
├── user # Users
├── wiki # Wikis
├── configure # Set defaults
├── invoke # Invoke REST API
├── login # Authenticate
└── logout # Clear credentials
az pipelines # Azure Pipelines
├── agent # Agents
├── build # Builds
├── folder # Pipeline folders
├── pool # Agent pools
├── queue # Agent queues
├── release # Releases
├── runs # Pipeline runs
├── variable # Pipeline variables
└── variable-group # Variable groups
az boards # Azure Boards
├── area # Area paths
├── iteration # Iterations
└── work-item # Work items
az repos # Azure Repos
├── import # Git imports
├── policy # Branch policies
├── pr # Pull requests
└── ref # Git references
az artifacts # Azure Artifacts
└── universal # Universal Packages
Read the relevant reference file based on the user's task. Each file contains complete command syntax and examples for its domain.
| File | When to read | Covers |
|---|---|---|
references/repos-and-prs.md | Repos, branches, pull requests, branch policies | Repositories, Import, PRs (create/list/vote/reviewers/policies), Git refs, Branch policies |
references/pipelines-and-builds.md | Pipelines, builds, releases, artifacts | Pipelines CRUD, runs, builds, releases, artifacts download/upload |
references/boards-and-iterations.md | Work items, sprints, area paths | Work items (WIQL/create/update/relations), Area paths, Iterations, Team iterations |
references/variables-and-agents.md | Pipeline variables, agent pools | Pipeline variables, Variable groups, Pipeline folders, Agent pools/queues |
Weekly Installs
7.9K
Repository
GitHub Stars
26.7K
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
gemini-cli7.7K
codex7.7K
opencode7.7K
github-copilot7.7K
cursor7.6K
kimi-cli7.6K
97,600 周安装
references/org-and-security.md | Projects, teams, users, permissions, wikis | Projects, Extensions, Teams, Users, Security groups/permissions, Service endpoints, Wikis, Admin |
references/advanced-usage.md | Output formatting, JMESPath queries | Output formats, JMESPath queries (basic + advanced), Global args, Common params, Git aliases |
references/workflows-and-patterns.md | Automation scripts, best practices, error handling | Common workflows, Best practices, Error handling, Scripting patterns, Real-world examples |