azdo-release-env
v1.0.3
Published
CLI tool for exporting Azure DevOps release environment variables
Downloads
409
Maintainers
Readme
azdo-release-env
Interactive CLI that extracts environment variables from a selected Azure DevOps Release pipeline environment and exports them to ./.env or ./env.json.
Disclaimer
This is a personal project and is not officially supported by Microsoft or Azure DevOps. This CLI requires the Azure CLI and Azure DevOps extension to be installed and authenticated. It reads the release definition and environment variables via the Azure DevOps REST API. It does not store or transmit any data outside of your local machine. Use at your own risk.
Requirements
- Node.js
- Azure CLI installed (
az)- https://learn.microsoft.com/cli/azure/install-azure-cli
- Azure DevOps extension installed
az extension add --name azure-devops
- Authenticated to Azure DevOps
az devops login
- Azure DevOps defaults (
organizationandproject)- If missing, the CLI will prompt and set them via
az devops configure -d ....
- If missing, the CLI will prompt and set them via
Install
npm install -g azdo-release-envOr
npx azdo-release-envUsage
azdo-release-envThe CLI will prompt you to:
- Select a release pipeline definition
- Choose an export format (
.envor JSON) - Confirm writing to the current directory
Output
.envexport writes./.envJSONexport writes./env.json
Notes
- The CLI prompts you to select an environment from the release definition.
- Variable groups are currently not included (only explicit environment
variables).
Troubleshooting
- If
azis not installed, install Azure CLI first. - If you see an authentication error, run
az devops login.
