Skip to content

Instantly share code, notes, and snippets.

@pradeepradyumna
Last active May 28, 2021 06:46
Show Gist options
  • Save pradeepradyumna/e03296b333fe818b907c88db93201cdf to your computer and use it in GitHub Desktop.
Save pradeepradyumna/e03296b333fe818b907c88db93201cdf to your computer and use it in GitHub Desktop.
Azure DevOps : Get list of repositories using Azure CLI
Step 1: Download Azure CLI here - https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest
Step 2: Add the Azure DevOps extension
az extension add --name azure-devops
Step 3: Login to DevOps.
az login
Step 4: Configure defaults
az devops configure --defaults organization=https://dev.azure.com/<ORGANIZATION_NAME> project=<PROJECT_NAME>
Step 2: Get list
az repos list --org "https://dev.azure.com/<ORGANIZATION_NAME>" -p "<PROJECT_NAME>" -o tsv --query [].name
Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment