The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources.
The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
Official documentation of the Azure CLI
With the Azure DevOps extension, we can reach most of the Azure DevOps services from the terminal, such as;
- Create a Team Project
- Add user to a Team Project
- Create a Wiki Page in a Team Project
- Import a Repo to a Team Project
- Create a PR
- Create a Pipeline
- Run a Pipeline
Capabilities are almost endless with the Azure DevOps extension 🎉
But, you need to install the extension first.
Usage is simple;
$ 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://docs.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.
If you want to take a look at (and hopefully contribute to) Azure CLI DevOps Extension code, it's open-sourced on GitHub with ❤ Azure DevOps Extension for Azure CLI