Skip to content

Latest commit

 

History

History
266 lines (239 loc) · 18.5 KB

File metadata and controls

266 lines (239 loc) · 18.5 KB
title Index to Azure DevOps CLI examples
titleSuffix Azure DevOps
description Find examples that showcase use of Azure DevOps CLI. This article contains an organized list of resources with examples.
ms.topic overview
ms.subservice azure-devops-reference
ms.custom devx-track-azurecli
ms.manager mijacobs
ms.author chcomley
author chcomley
monikerRange azure-devops
ms.date 05/30/2025

Index to Azure DevOps CLI examples

[!INCLUDE version-eq-azure-devops]

Use this index to quickly access examples that showcase use of the Azure DevOps Command Line Interface (CLI).

To start using Azure DevOps CLI, see Get started with Azure DevOps CLI.

Note

The Azure DevOps Command Line Interface (CLI) is only available for use with Azure DevOps Services. The Azure DevOps extension for the Azure CLI doesn't support any version of Azure DevOps Server.

Azure Artifacts

Azure Boards

:::row::: :::column span="1"::: #### Area and Iteration Paths - Add a project area path - Add a project iteration - Rename or move an iteration - List project areas - List project iterations - List team areas paths - List team iterations - Delete an area path - Rename or move an area path - Set team area paths - Set team iteration paths :::column-end::: :::column span="1"::: #### Queries - Run work item query - Permanently delete work items
#### Work items - Add work items - Add or remove work item links - Delete work items
- List supported link types - Move work items - Show work item details - Show work item link details - Update work items :::column-end::: :::row-end:::

Organizations, projects, and collections

:::row::: :::column span="1"::: #### Banners - Add a new banner - List banners - Remove a banner - Show banner details - Update a banner #### Extensions - Install an extension - List extensions - List extension information - Uninstall or disable an extension #### Manage wikis - Create a wiki - Create a wiki from a repo - Delete a wiki - List wikis - Publish a repo as a wiki - View wiki details #### Projects - Create a project - Delete a project - List projects - Show project information - Open project in web portal :::column-end::: :::column span="1"::: #### Teams - Add a team - Delete a team - List team members - List teams - Show team details - Rename a team #### User accounts - Add a user - List users - Remove a user - Update a user - Show users #### Wiki pages - Add a wiki page - Delete a wiki page - Edit a wiki page - Open a wiki - View a wiki page :::column-end::: :::row-end:::

Azure Pipelines

:::row::: :::column span="1"::: #### Add and run a pipeline - Create a pipeline - Run a pipeline - Show the details of a pipeline - Update a pipeline

  #### Agents, agent pools, agent queues 
  - [List agents](../pipelines/agents/agents.md?tabs=yaml%2Cazure-devops-cli#list-agents)
  - [List agent pools](../pipelines/agents/pools-queues.md?tabs=yaml%2Cazure-devops-cli#list-agent-pools)
  - [List agent queues](../pipelines/agents/pools-queues.md?tabs=yaml%2Cazure-devops-cli#list-agent-queues)
  - [Show agent details](../pipelines/agents/agents.md?tabs=yaml%2Cazure-devops-cli#show-agent-details)
  - [Show agent pool details](../pipelines/agents/pools-queues.md?tabs=yaml%2Cazure-devops-cli#show-agent-pool-details)
  - [Show agent queue details](../pipelines/agents/pools-queues.md?tabs=yaml%2Cazure-devops-cli#show-agent-queue-details)

  #### Artifacts
  - [Download your artifact](../pipelines/artifacts/pipeline-artifacts.md#download-artifacts) 
  - [Publish an artifact to your pipeline](../pipelines/artifacts/pipeline-artifacts.md) 

:::column-end::: :::column span="1"::: #### Runs - Add tag to pipeline run - Delete tag from pipeline run - List pipeline runs - List pipeline run tags - Show pipeline run details

  #### Variables
  - [Create a variable](../pipelines/process/variables.md?tabs=azure-devops-cli%2Cbatch#create-a-variable)
  - [Delete a variable](../pipelines/process/variables.md?tabs=azure-devops-cli%2Cbatch#delete-a-variable)
  - [List variables](../pipelines/process/variables.md#list-variables)
  - [Update a variable](../pipelines/process/variables.md?tabs=azure-devops-cli%2Cbatch#update-a-variable)

  #### Variable groups
  - [Add variables to a variable group](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#add-variables-to-a-variable-group)
  - [Create a variable group](../pipelines/library/variable-groups.md#create-a-variable-group)
  - [Delete a variable group](../pipelines/library/variable-groups.md#delete-a-variable-group)
  - [Delete variables from a variable group](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#delete-variables-from-a-variable-group)
  - [List variable groups](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#list-variable-groups)
  - [List variables in a variable group](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#list-variables-in-a-variable-group)
  - [Show details for a variable group](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#show-details-for-a-variable-group)
  - [Update a variable group](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#update-a-variable-group)
  - [Update variables in a variable group](../pipelines/library/variable-groups.md?tabs=azure-devops-cli%2Cyaml#update-variables-in-a-variable-group)

:::column-end::: :::row-end:::

Azure Repos

:::row::: :::column span="1"::: #### Create and manage Git repositories
- Create a repository - Delete a repository - Import a repository - List repositories - Rename a repository - Show repository details - Update a repository #### Manage repository policies - List repository policies - Show repository policies - Manage case enforcement policy - Manage file size policy
- Update repository policy #### Manage branch policies - List branch policies - Show branch policy - Create policies using a configuration file - Update policies using a configuration file - Manage required reviewer policy - Manage external required reviewer policies - Manage build validation policies - Manage comment-required policy - Manage merge strategy policy - Create work item linking policy - Update work item linking policy :::column-end::: :::column span="1"::: #### Pull requests - Create a pull request - Create a draft pull request - Edit a pull request, add details - Add reviewers to a pull request - Link work items to a pull request
- List pull requests - Define a custom pull request view - Show pull request details - Set vote on a pull request - Reset vote on a pull request - Complete or update a pull request - Set pull request completion options - Set pull request to autocomplete - Abandon a pull request - Manage pull request policies - Manage pull request reviewers #### Import and manage references - Create a reference - Delete a reference - List references - Lock a reference - Unlock a reference :::column-end::: :::row-end:::

Security groups and permissions

Service endpoints or service connections

Related content

Azure CLI reference articles