Manage Azure API Management as code β extract, version, and publish your APIM configuration with a single CLI.
| Guide | Description |
|---|---|
| Getting Started | Install and run your first extract β publish cycle in 10 minutes |
| Command Reference | Detailed docs for extract, publish, init, and API Center backup/restore |
| CI/CD Integration | Set up GitHub Actions or Azure DevOps pipelines |
| Walkthroughs | Step-by-step guides: Air-gapped GitHub Actions (local registry or offline tarball), Air-gapped Azure DevOps (local registry or offline tarball) |
flowchart LR
A[Azure APIM Instance] -->|apiops extract| B[Local Artifact Files]
B -->|git commit| C[Version Control]
C -->|Review & Merge| D[CI/CD Pipeline]
D -->|apiops publish| E[Target APIM Instance]
- Extract your APIM configuration into version-controlled files
- Review changes through pull requests β diffs, approvals, audit trail
- Publish to target environments with environment-specific overrides
- Automate with CI/CD for continuous, incremental deployments
npm install -g @azure-tools/apiops-cliRequires Node.js 22 or later.
- Full APIM coverage β APIs, products, backends, named values, policies, tags, subscriptions, gateways, and more
- Filtered extraction β Extract specific APIs with automatic transitive dependency resolution
- Environment overrides β Promote across dev/staging/prod with per-environment config
- Incremental publish β Deploy only changed resources via git diff
- Dry-run mode β Preview changes before applying them
- CI/CD scaffolding β
apiops initgenerates GitHub Actions or Azure DevOps pipelines - API Center backup and restore β
apiops apicextracts and publishes Azure API Center resources and specifications - Token substitution β Replace
{#[TOKEN_NAME]#}placeholders in config files with pipeline secrets before publish - Multiple auth methods β Azure CLI, managed identity, workload identity (OIDC), service principal
docs/
βββ README.md β You are here
βββ getting-started.md β Quickstart guide
βββ commands/
β βββ extract.md β apiops extract reference
β βββ publish.md β apiops publish reference
β βββ init.md β apiops init reference
β βββ apic.md β apiops apic reference
βββ guides/
β βββ scenarios-and-workflows.md β Portal-first vs code-first workflows
β βββ authentication.md β Auth methods for local dev and CI/CD
β βββ filtering.md β Filter extraction to specific APIs
β βββ environment-overrides.md β Per-environment configuration
β βββ incremental-publish.md β Deploy only changed resources
β βββ dry-run.md β Preview changes before publishing
β βββ multi-environment.md β Dev / staging / prod promotion
β βββ multi-team-workflows.md β Selective extraction, CODEOWNERS
β βββ code-first-workflow.md β IDE β git β CI/CD β APIM
β βββ token-substitution.md β Pipeline token/placeholder substitution
β βββ prompt-files.md β Copilot prompt files for APIOps tasks
β βββ migration-from-v1.md β Migrate from Azure/apiops toolkit
βββ ci-cd/
β βββ github-actions.md β GitHub Actions integration
β βββ azure-devops.md β Azure DevOps Pipelines integration
β βββ authentication-patterns.md β CI/CD auth (OIDC, service principal)
βββ reference/
β βββ artifact-format.md β Directory layout and file structure
β βββ dependency-graph.md β Transitive dependency resolution
β βββ resource-types.md β Supported APIM resource types
β βββ configuration.md β Config priority chain
β βββ apim-glossary.md β APIM terminology primer
β βββ exit-codes.md β CLI exit codes and meanings
βββ architecture/
β βββ overview.md β System design overview
β βββ design-principles.md β Architecture principles
βββ walkthrough/
β βββ air-gapped-github-actions.md β Using `apiops` in air-gapped CI/CD (GitHub Actions)
β βββ air-gapped-azure-devops.md β Using `apiops` in air-gapped CI/CD (Azure DevOps)
βββ troubleshooting/
βββ common-errors.md β Error messages and solutions
βββ debugging-guide.md β Debugging with --log-level
βββ pipeline-recovery.md β Recovering failed CI/CD runs
New to APIops CLI? Start with the Getting Started guide β you'll have a working extract β publish cycle in 10 minutes.