A GitHub CLI (gh) style interface for Azure DevOps Server (ado)
Project description
ADO CLI
A GitHub CLI (gh) style interface for Azure DevOps Server (ADO). This tool provides a command-line interface to interact with Azure DevOps Server repositories, pull requests, work items, and pipelines.
Features
- Authentication: Secure login/logout with Personal Access Tokens
- Repository Management: List and view repository information
- Pull Request Operations: Create, view, list, checkout, diff, and close pull requests
- Work Item Management: Create, view, and list work items (bugs, tasks, user stories)
- Pipeline Management: View pipeline runs and build status
- Git Integration: Automatically detects current repository from git config
- Rich Output: Beautiful tables and formatted output using Rich library
Installation
uv tool install ado-cli
Quick Start
-
Login to Azure DevOps Server:
ado auth login
-
List pull requests:
ado pr list
-
View pull request details:
ado pr view 123
Commands
Authentication
# Login to Azure DevOps Server
ado auth login
# Check authentication status
ado auth status
# Logout
ado auth logout
Repositories
# List repositories in a project
ado repo list --project MyProject
# View repository details (auto-detects current repo)
ado repo view
# View specific repository
ado repo view MyRepo --project MyProject
# Open repository in web browser
ado repo view --web
Pull Requests
# List active pull requests
ado pr list
# List all pull requests including completed
ado pr list --state all
# Limit number of results
ado pr list -L 10
# View pull request details
ado pr view 123
# Open pull request in web browser
ado pr view 123 --web
# Create a pull request
ado pr create
# Create with options
ado pr create --title "Fix bug" --base main --head feature-branch
# Checkout pull request branch
ado pr checkout 123
# Show pull request diff
ado pr diff 123
# Close pull request
ado pr close 123
# Show build checks for pull request
ado pr checks 123
Work Items
# List active work items
ado issue list
# List all work items
ado issue list --state all
# Filter by assignee
ado issue list --assignee "John Doe"
# View work item details
ado issue view 456
# Open work item in web browser
ado issue view 456 --web
# Create a work item
ado issue create
# Create with specific type
ado issue create --type "User Story" --title "New feature"
Pipeline Runs
# List recent pipeline runs
ado run list
# Limit number of results
ado run list -L 20
# View pipeline run details
ado run view 789
# Open pipeline run in web browser
ado run view 789 --web
Configuration
# Set default project
ado config set default_project MyProject
# Get configuration value
ado config get default_project
Configuration
The tool stores configuration in ~/.ado/config.json. Key settings include:
server_url: Azure DevOps Server URLpat: Personal Access Tokencollection: Collection name (default: DefaultCollection)default_project: Default project for commands
Git Integration
ADO CLI automatically detects the current repository and project from your git configuration. This means you can run most commands from within a git repository without specifying --project and --repo options.
The tool parses Azure DevOps remote URLs in the format:
https://server/collection/project/_git/repo
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ado_cli-0.0.2.tar.gz.
File metadata
- Download URL: ado_cli-0.0.2.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4298c434bc64bcf9bbc0178c92a49701dc32ccc30b05935ca87ee34394b1ca2
|
|
| MD5 |
e529d16063de672ee16a22de2c4c432b
|
|
| BLAKE2b-256 |
6f457e5ca1cf6de9f6bb371fe33246330b5b0e8dc9b664fd6025ddb300708c8e
|
File details
Details for the file ado_cli-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ado_cli-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afef1b576a033a8bcf70afb2417c8914cb0e264327b4c2218e7522d9be97f9f5
|
|
| MD5 |
7288eb3a4baa13eedd386dcbb4b4ac4c
|
|
| BLAKE2b-256 |
e794452f4f4efe379f168f1bf3f9aa3318d11839bc05c4fb2f0627a603ee856a
|