Skip to content

Getting Started

Installation

pip install azwork
git clone https://github.com/andou/azwork.git
cd azwork
pip install .
git clone https://github.com/andou/azwork.git
cd azwork
pip install -e ".[dev]"

Create a Personal Access Token

Go to https://dev.azure.com/{your-org}/_usersSettings/tokens and create a token with the Work Items → Read scope.

Export it as an environment variable:

export AZURE_DEVOPS_PAT="your-token-here"

Warning

The PAT is never stored in the config file — it is always read from the AZURE_DEVOPS_PAT environment variable.

Run the setup wizard

azwork --setup

This creates ~/.azwork.yml interactively, asking for your organization name, project, and preferred work item types.

Launch

azwork

Configuration

azwork reads its configuration from ~/.azwork.yml. CLI arguments always take priority.

Config file anatomy

# Azure DevOps organization name (the {org} part of dev.azure.com/{org})
org: myorg

# Project name within the organization
project: myproject

# Default directory where exported Markdown files are saved.
# Can be an absolute path or relative to where you run azwork.
# Created automatically on first export if it doesn't exist.
default_output_dir: ./bugs

# Work item types to include in queries.
# These are used both as WIQL filter and as options in the Type dropdown.
work_item_types:
  - Bug
  - Task
  - User Story

All fields are optional when using CLI overrides.

Minimal example

org: contoso
project: webapp

Full example

org: contoso
project: webapp
default_output_dir: ~/work/bugs
work_item_types:
  - Bug
  - Task
  - User Story
  - Feature
  - Epic

CLI overrides

# Override org and project
azwork --org myorg --project myproject

# Custom export directory
azwork --output-dir ./sprint-bugs