This content originally appeared on DEV Community and was authored by Pradeep Pradyumna
If you're looking for an azure cli command to get a list of repositories, you can follow the steps:
Step 1:
Download Azure CLI from here
Step 2:
Add the Azure DevOps extension
az extension add --name azure-devops
Step 3:
Configure defaults. Give YOUR organization and project names
az devops configure --defaults organization=https://dev.azure.com/<ORGANIZATION_NAME> project=<PROJECT_NAME>
Step 4:
Get list by running either of the below commands
az repos list --org "https://dev.azure.com/<ORGANIZATION_NAME>" -p "<PROJECT_NAME>" -o tsv --query [].name
or
az repos list --query '[].{Name:name, Url:remoteUrl}' -o json
Cheers!
Thanks for reading! ?
This content originally appeared on DEV Community and was authored by Pradeep Pradyumna
Pradeep Pradyumna | Sciencx (2021-06-01T10:29:37+00:00) Azure CLI: Get Azure repositories list in 4 steps. Retrieved from https://www.scien.cx/2021/06/01/azure-cli-get-azure-repositories-list-in-4-steps/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.