Index to Azure DevOps CLI examples
Azure DevOps Services
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 does not support any version of Azure DevOps Server.
Azure Artifacts
- Universal Packages - download specific files
- Create a feed
- Download a universal package
- Publish a universal package
Azure Boards
Area and Iteration Paths
Organizations, projects, and collections
Azure Pipelines
Add and run a pipeline
Agents, agent pools, agent queues
- List agents
- List agent pools
- List agent queues
- Show agent details
- Show agent pool details
- Show agent queue details
Artifacts
Runs
- Add tag to pipeline run
- Delete tag from pipeline run
- List pipeline runs
- List pipeline run tags
- Show pipeline run details
Variables
Variable groups
Azure Repos
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
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
Security groups and permissions
- Add a member to a security group
- Assign allow or deny permission to specified user or group
- Clear all permissions of this token for a user or group
- Create a security group
- Delete a security group
- List tokens for specified user or group and namespace
- List all available namespaces for an organization
- List security groups
- List the memberships for a group or user
- Remove a member from a security group
- Reset permission for specified permission bit(s)
- Show details of a security group
- Show details of permissions available in each namespace
- Show permissions for specified token, namespace and user or group
- Update a security group
Service endpoints or service connections
- Create a GitHub service endpoint
- Create an Azure RM service endpoint
- Create service endpoint using a configuration file
- List service endpoints
- Delete a service endpoint
- Manage GitHub service endpoints
- Show details of a service endpoint
- Update a service endpoint