How to install and configure Azure DevOps CLI?
Hello Everyone
Welcome to CloudAffaire and this is Debjeet.
In today’s blog post, we will discuss how to install and configure Azure DevOps CLI. You can manage most of the Azure DevOps features and services by enabling Azure CLI extension for Azure DevOps.
How to install and configure Azure DevOps CLI?
Prerequisites:
Step 1: Add Azure CLI extension for Azure DevOps.
1 2 |
## Add the Azure DevOps extension az extension add --name azure-devops |
Step 2: Check if the Azure CLI extension for Azure DevOps added successfully.
1 2 |
## Check if the extension added properly az devops --help |
Step 3: Singin to your Azure account.
1 2 |
## Signin to your Azure account az login |
Step 4: Configure Azure DevOps CLI with your Azure DevOps organization details.
1 2 3 |
## Configure Azure DevOps organization az devops configure \ --defaults organization=https://dev.azure.com/your_organization_name |
Step 5: Test your Azure DevOps CLI by creating a new project.
1 2 3 4 5 6 7 8 9 10 11 |
## Test by creating a new project az devops project create \ --name "debjeet" \ --description "dummy project" \ --org https://dev.azure.com/your_organization_name \ --source-control git \ --visibility private ## List all projects in your organization az devops project list \ --org https://dev.azure.com/your_organization_name |
Step 6: Add the newly created project in your configuration as default project.
1 2 3 |
## Reconfigure Azure DevOps with organization and project details az devops configure \ --defaults organization=https://dev.azure.com/your_organization_name project=your_project_name |
Hope you have enjoyed this article. To know more about Azure DevOps, please refer below official documentation
https://docs.microsoft.com/en-us/azure/devops/?view=azure-devops