| title | Get Started with Azure DevOps CLI |
|---|---|
| titleSuffix | Azure DevOps |
| description | Install the Azure DevOps extension for the Azure CLI. Learn how to sign on, configure defaults, access help, and open Azure DevOps Services in a browser. |
| ms.topic | quickstart |
| ms.subservice | azure-devops-reference |
| ms.manager | mijacobs |
| ms.author | chcomley |
| author | chcomley |
| monikerRange | azure-devops |
| ms.update | 90-days |
| ms.date | 01/09/2026 |
[!INCLUDE version-eq-azure-devops]
This quickstart shows how to install and start using the Azure DevOps extension for the Azure Command Line Interface (CLI). The extension adds commands for managing Azure DevOps Services from the command line so you can script and automate common tasks.
What you'll learn:
- How to install the Azure DevOps extension for Azure CLI
- How to sign in, configure defaults, and access help for commands
- How to use the CLI to open Azure DevOps items in a browser
Quick steps:
- Install Azure CLI (if not already installed)
- Add or update the Azure DevOps extension
- Sign in and set default organization/project
- Use
az devops --helpor open items with--open
Note
The Azure DevOps CLI extension works only with Azure DevOps Services (cloud). It doesn't support Azure DevOps Server (on-premises).
- Install Azure CLI. Follow the steps in Install the Azure CLI. After installation, verify your version:
az --version
-
Add the Azure DevOps extension.
az extension add --name azure-devopsIf you already have the extension installed, and want to make sure you have the latest version, run the update command:
az extension update --name azure-devops -
To confirm the installation, run the command
az extension listoraz extension show --name azure-devops. -
To sign in, run the
az logincommand. Azure CLI supports only interactive sign-in using user name and password withaz login. To sign in using a Personal Access Token (PAT), see Sign in via Azure DevOps PAT.[!NOTE]
The Azure DevOps CLI extension currently supports interactive authentication and PAT authentication. For service principals and managed identities, use the REST APIs directly or client libraries. -
We recommend that you set the default configuration for your organization and project. Otherwise, you can specify the values in the individual commands themselves.
az devops configure --defaults organization=https://dev.azure.com/contoso project=ContosoWebApp
[!INCLUDE enable-mcp-server]
Adding the Azure DevOps Extension adds devops, pipelines, artifacts, boards, and repos groups.
For usage and help content for any command, specify the --help parameter, for example:
az devops --help
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.
extension : Manage extensions.
project : Manage team projects.
security : Manage security related operations.
service-endpoint : Manage service endpoints/service connections.
team : Manage teams.
user : Manage users.
wiki : Manage wikis.
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.
invoke : This command will invoke request for any DevOps area and resource. Please use
only json output as the response of this command is not fixed. Helpful docs -
https://learn.microsoft.com/rest/api/azure/devops/.
login : Set the credential (PAT) to use for a particular organization.
logout : Clear the credential for all or a particular organization.
You can use --open parameter to open any artifact in Azure DevOps portal in your default browser.
az pipelines build show --id 1 --open
This command shows the details of the build with --id 1 in the Command Prompt window and also opens it in the default browser.