Azure DEVOPS CLI
azure-devops-cli skill for programming & development
Managing Azure DevOps through GUI is time-consuming for repeated tasks. Azure DevOps CLI enables command-line interaction with repos, pipelines, work items, and boards automating workflows, integrating with scripts, and enabling efficient DevOps operations from terminal.
What Is This?
Overview
Azure DevOps CLI provides command-line interface for Azure DevOps services. It handles repository operations (clone, push, pull requests), pipeline management (trigger, monitor, approve), work item operations (create, update, query), board management, artifact publishing, and team administration through terminal commands.
The tool supports authentication with personal access tokens or Azure credentials, outputs structured data for scripting, integrates with shell scripts and automation, and provides consistent interface across Azure DevOps services.
This enables automation of repetitive tasks, scripting of complex workflows, integration with development tools, and efficient DevOps operations without GUI context switching.
Who Should Use This
DevOps engineers automating workflows. Developers wanting terminal efficiency. Build engineers managing pipelines. Project managers tracking work items. Anyone preferring command-line tools.
Why Use It?
Problems It Solves
GUI operations are slow for repeated tasks. CLI commands execute instantly and script easily.
Manual work item updates are tedious. CLI automation handles bulk operations.
Pipeline management through GUI requires many clicks. CLI commands trigger and monitor efficiently.
Integration with scripts needs programmatic access. CLI provides consistent interface for automation.
Core Highlights
Repository operations from terminal. Pipeline triggering and monitoring. Work item creation and updates. Pull request management. Artifact operations. Board and sprint management. Team administration. Scripting and automation integration.
How to Use It?
Basic Usage
Authenticate with Azure DevOps, execute commands for repos, pipelines, work items, integrate with scripts.
az devops login
az boards work-item create --title "Bug fix" --type Bug
az pipelines run --name "Build"
az repos pr create --title "Feature" --source feature/newSpecific Scenarios
For automation:
for bug in $(cat bugs.txt); do
az boards work-item create --title "$bug" --type Bug
done
az pipelines run --name "Deploy" --parameters env=stagingFor CI integration:
status=$(az pipelines show --name "Build" --query "status")
if [ "$status" = "failed" ]; then
az boards work-item create --title "Build failed"
fiFor reporting:
az boards query --wiql "SELECT [ID] FROM WorkItems WHERE [Work Item Type] = 'Bug' AND [State] = 'Active'"
az boards work-item show --id 123 --output table > report.csvReal-World Examples
A team automates release notes generation. Script queries completed work items for sprint, extracts titles and descriptions, formats as markdown, and commits to repository. Release notes generate automatically without manual compilation.
A CI pipeline creates work items for failed tests. Pipeline script detects failures, uses CLI to create bugs with test details, assigns to responsible developer, and links to pipeline run. Bug tracking automation ensures no failures are missed.
A developer creates bulk test work items for feature. Script reads test case list, creates work item for each using CLI, sets appropriate fields, and links to feature. Hundreds of work items create in minutes instead of hours of manual entry.
Advanced Tips
Store authentication token securely. Use output formats (json, table) for scripting. Integrate with git hooks for workflow automation. Create shell aliases for common operations. Use queries for bulk operations. Monitor pipeline status programmatically. Automate work item updates based on commits. Generate reports from CLI queries. Document common command patterns for team.
When to Use It?
Use Cases
Workflow automation scripting. Bulk work item operations. Pipeline triggering and monitoring. Pull request management. Release note generation. Status reporting. Git hook integration. CI/CD pipeline customization.
Related Topics
Azure DevOps services and APIs. Command-line interface design. Shell scripting and automation. Git workflows and hooks. CI/CD pipeline patterns. Work item tracking systems. Agile project management. DevOps automation practices.
Important Notes
Requirements
Azure DevOps organization access. Personal access token or credentials. Azure CLI installed. Understanding of DevOps services. Shell scripting knowledge for automation. Appropriate permissions for operations.
Usage Recommendations
Secure authentication tokens properly. Use structured output for scripting. Handle errors in automation scripts. Document custom workflows. Test commands before automation. Use appropriate permissions. Monitor rate limits. Keep CLI updated. Integrate with existing tools. Share useful patterns with team.
Limitations
Requires network connectivity. Some features may lag GUI. Rate limiting applies. Authentication token management needed. Complex operations may need multiple commands. Learning curve for command syntax. Not all GUI features available. Scripting requires shell knowledge.
More Skills You Might Like
Explore similar skills to enhance your workflow
Domain Authority Auditor
40-item CITE domain audit: citation, impact, trust, entity scoring with veto checks
Boltz
Run Boltz structure prediction for protein and biomolecular modeling
Rails Expert
Build and integrate robust Ruby on Rails applications with expert-level automation support
Wiki Llms Txt
Generate LLMs.txt files for AI-friendly documentation of repositories
Remember Interactive Programming
remember-interactive-programming skill for programming & development
React Native Expert
Develop cross-platform mobile apps using React Native with expert integration support