mcpField
A
azure-devops-cli

azure-devops-cli

github.com/githubクラウド・DevOps40.5k14.6k 回インストール今日更新
リポジトリ

azure-devops-cli について

Azure CLI と Azure DevOps 拡張機能で Azure DevOps リソースを管理するスキルです。タスクに応じたコマンド参照を案内し、リポジトリ、パイプライン、ボード、セキュリティなどを扱います。

主な機能

  1. 01タスク別のコマンド参照
  2. 02リポジトリとプルリクエスト操作
  3. 03パイプライン、ビルド、成果物のコマンド
  4. 04作業項目とスプリントのコマンド
  5. 05組織とセキュリティの管理
  6. 06スクリプトとエラー処理のガイド

活用シーン

  1. 01プルリクエストの作成やレビュー
  2. 02パイプラインの実行とビルド確認
  3. 03作業項目やスプリント設定の更新
  4. 04Azure DevOps 管理の自動化

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/github/awesome-copilot --skill azure-devops-cli

インストール後、Claude Code で/azure-devops-cliを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

references/
advanced-usage.md
boards-and-iterations.md
long-comments-on-windows.md
org-and-security.md
pipelines-and-builds.md
repos-and-prs.md
variables-and-agents.md
workflows-and-patterns.md

詳細

Azure DevOps CLI

Azure DevOps 拡張機能を備えた Azure CLI を使用して、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

認証

# 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

CLI の構造

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

リファレンスファイル

ユーザーのタスクに応じて、該当するリファレンスファイルを読んでください。各ファイルには、そのドメインの完全なコマンド構文と例が含まれています。

ファイル読むタイミング対象範囲
references/repos-and-prs.mdリポジトリ、ブランチ、プルリクエスト、ブランチポリシーリポジトリ、インポート、PR (作成/一覧/投票/レビュー担当者/ポリシー)、Git 参照、ブランチポリシー
references/pipelines-and-builds.mdパイプライン、ビルド、リリース、成果物パイプラインの CRUD、実行、ビルド、リリース、成果物のダウンロード/アップロード
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自動化スクリプト、ベストプラクティス、エラー処理一般的なワークフロー、ベストプラクティス、エラー処理、スクリプトパターン、実践的な例
references/long-comments-on-windows.mdWindows で長い --discussion、--description、--content の値が失敗する場合az.cmd に対する cmd.exe の 8191 文字制限、シェル検出、および検証済みの 3 つの回避策 (azps.ps1、ネイティブの --file-path、az devops invoke --in-file)

コメント