Skip to content

Instantly share code, notes, and snippets.

@anuragdhingra
Created May 18, 2020 10:43
Show Gist options
  • Save anuragdhingra/fd506fea00a2c64bd3954cc07305dce6 to your computer and use it in GitHub Desktop.
Save anuragdhingra/fd506fea00a2c64bd3954cc07305dce6 to your computer and use it in GitHub Desktop.

Revisions

  1. Anurag Dhingra created this gist May 18, 2020.
    16 changes: 16 additions & 0 deletions AZURE_CLI.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    1. Install Azure CLI
    ```sh
    brew install azure-cli
    ```
    2. Add the DevOps CLI extension -
    ```sh
    az extension add --name azure-devops
    ```
    3. Set your default organization and project -
    ```sh
    az devops configure --defaults organization=https://dev.azure.com/myorg project=myproject
    ```
    4. Clone, all at once -
    ```sh
    az repos list | jq -r '.[].webUrl' | while read webUrl ; do git clone "${webUrl}" ; done
    ```