Azure DevOps Cli

Vijayramraju
3 min readNov 29, 2023

The Azure DevOps CLI (Command-Line Interface) is a set of command-line tools that allows you to interact with and manage Azure DevOps Services and Azure DevOps Server (formerly known as Team Foundation Server) from the command line. It provides a convenient way to automate various tasks, manage pipelines, work items, and more, without having to rely solely on the web interface. Here are some key features and examples of how to use the Azure DevOps CLI:

Key Features:

  1. Cross-Platform: The Azure DevOps CLI is designed to work on multiple platforms, including Windows, macOS, and Linux.
  2. Authentication: You can authenticate using Personal Access Tokens (PATs) or by logging in with Azure DevOps accounts.
  3. Customization: The CLI supports a wide range of commands and options for managing Azure DevOps projects, repositories, pipelines, work items, and more.
  4. Scripting and Automation: You can use the CLI to automate common DevOps tasks in scripts or within CI/CD pipelines.

Examples of Azure DevOps CLI Commands:

Here are some examples of common commands you can run using the Azure DevOps CLI:

  1. Authenticate:
  1. List Projects:
  • To list all projects in your Azure DevOps organization:
  • Copy code
  • az devops project list
  1. Create a New Project:
  • To create a new project:
  • arduinoCopy code
  • az devops project create — name “NewProject” — visibility “private”
  1. Clone a Repository:
  • To clone a Git repository to your local machine:
  • bashCopy code
  • az repos clone — repository “MyRepo” — output-folder “local-folder”
  1. Create a New Work Item:
  • To create a new work item (e.g., a user story):
  • bashCopy code
  • az boards work-item create — type “user story” — title “Implement Feature X” — project “MyProject”
  1. List Pipelines:
  • To list all pipelines in a project:
  • arduinoCopy code
  • az pipelines list — project “MyProject”
  1. Queue a Build:
  • To queue a build for a specific pipeline:
  • arduinoCopy code
  • az pipelines build queue — definition-name “MyPipeline” — project “MyProject”
  1. Manage Service Connections:
  • To create or list service connections:
  • cssCopy code
  • az devops service-endpoint list [ — project “MyProject”]
  1. Manage Variables:
  • To set or update pipeline variables:
  • bashCopy code
  • az pipelines variable create/update — name “MyVariable” — value “MyVa

Demo Day 1 Video:

https://youtu.be/hp1A3okREXs

you can find more information about DevOps in this DevOps Link

Conclusion:
Unogeeks is the №1 IT Training Institute for DevOps Training. Anyone Disagree? Please drop in a comment

You can check out our other latest blogs on DevOps here — DevOps Blogs

You can check out our Best In Class DevOps Training Details here — DevOps Training

Follow & Connect with us:

— — — — — — — — — — — -

For Training inquiries:

Call/Whatsapp: +91 73960 33555

Mail us at: info@unogeeks.com

Our Website ➜ https://unogeeks.com

Follow us:

Instagram: https://www.instagram.com/unogeeks

Facebook:https://www.facebook.com/UnogeeksSoftwareTrainingInstitute

Twitter: https://twitter.com/unogeeks

#DEVOPS #UNOGEEKS #DEVOPSTRAINING

--

--