Azure DevOps from the command line
The Azure DevOps extension for the Azure CLI allows you to experience Azure DevOps from the command line, bringing the capability to manage Azure DevOps right to your fingertips! This allows you to work in a streamlined task/command oriented manner without having to worry about the GUI flows, providing you a faster and flexible interaction canvas. The Azure DevOps Extension for Azure CLI adds Pipelines, Boards, Repos, Artifacts and DevOps commands to the Azure CLI.
Azure CLI runs on Windows, Linux, and macOS. See the install steps.
Quick start
Install the Azure CLI. You must have at least v2.0.49
, which you can verify with az --version
command.
Add the Azure DevOps Extension az extension add --name azure-devops
Run the az login
command.
If the CLI can open your default browser, it will do so and load a sign-in page. Otherwise, you need to open a
browser page and follow the instructions on the command line to enter an authorization code after navigating to
https://aka.ms/devicelogin in your browser. For more information, see the
Azure CLI login page.
Usage
$az [group] [subgroup] [command] {parameters}
Adding the Azure DevOps Extension adds devops
, pipelines
, artifacts
, boards
and repos
groups.
For usage and help content for any command, pass in the -h parameter, for example:
$ az devops -h
Group
az devops : Manage Azure DevOps organization level operations.
Related Groups
az pipelines: Manage Azure Pipelines
az boards: Manage Azure Boards
az repos: Manage Azure Repos
az artifacts: Manage Azure Artifacts.
Subgroups:
admin : Manage administration operations.
project : Manage team projects.
service-endpoint : Manage service endpoints/service connections.
team : Manage teams.
Commands:
configure : Configure the Azure DevOps CLI or view your configuration.
feedback : Displays information on how to provide feedback to the Azure DevOps CLI team.
login : Set the credential (PAT) to use for a particular organization.
logout : Clear the credential for all or a particular organization.
See the getting started guide and the samples section for more usage examples.
For documentation and more information on the commands currently supported, take a look at the Azure DevOps extension documentation. If you have any changes you’d like or suggestions for features then we’d love your feedback in our Azure DevOps extension GitHub repo – we’re taking PR’s!