| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| azure-cost-cli.0.57.0.nupkg | 2026-05-30 | 6.3 MB | |
| 0.57.0 source code.tar.gz | 2026-05-30 | 892.4 kB | |
| 0.57.0 source code.zip | 2026-05-30 | 961.6 kB | |
| README.md | 2026-05-30 | 4.0 kB | |
| Totals: 4 Items | 8.2 MB | 0 | |
What's new in 0.57.0
New feature: threshold command group
Four new sub-commands for CI/CD cost gating. Each fetches live Azure cost data, evaluates it against a threshold, and optionally exits with code 1 (via --fail-on-threshold) to fail a pipeline step.
| Sub-command | What it checks |
|---|---|
threshold daily-change |
Today's total cost vs yesterday |
threshold forecast-deviation |
Actual spend vs the Azure forecast |
threshold service-spike |
Per-service cost vs the same-length previous period |
threshold weekly-average |
7-day average daily cost (fixed-amount only) |
Shared options: --percentage, --fixed-amount, --fail-on-threshold
All output formats are supported (-o console, -o json, -o text, -o markdown, -o csv).
:::bash
# Fail the pipeline if today's cost increased more than 25 %
azure-cost threshold daily-change --percentage 25 --fail-on-threshold
# Alert if any service spiked by more than €200 vs last period
azure-cost threshold service-spike --fixed-amount 200 -o json
New feature: configuration file support
A JSON config file (local azure-cost-cli.json or global ~/.azure-cost-cli.json) can now supply default values for any option. CLI flags always win over config file values.
:::json
{
"subscription": "00000000-0000-0000-0000-000000000000",
"output": "text",
"noColor": true
}
New global flags: --no-color and --quiet
--no-color— disables ANSI colour output; useful in CI logs or terminals that don't support colour.--quiet— suppresses all status/spinner messages; only actual data is written to stdout. Ideal for scripting and piping.
Both flags can also be set via the config file.
Other changes
- Anomaly detection:
detectAnomaliesnow prints a green "No anomalies detected." message instead of silent empty output when no anomalies are found. - Removed: the
pricescommand (was never shipped/enabled). The underlying price retrieval infrastructure is retained forwhat-ifscenarios. - Bug fix:
accumulatedCostno longer attempts to fetch a forecast for past-only timeframes (TheLastMonth,TheLastBillingMonth), avoiding a spurious API error. - Bug fix: validation errors (e.g. missing required flags) now print a clean single-line message instead of a full stack trace.
- Dependency:
Microsoft.NET.Test.Sdkbumped to 18.6.0.
Full changelog
- feat: cost threshold alerting commands for CI/CD gating (#330)
- feat: config file, --no-color, --quiet, fix empty formatter output (#331)
- fix: two bugs found during live command validation (threshold
-oflag, validation error formatting) - chore: remove unused prices command (#328)
- fix: show 'No anomalies detected' message when anomaly list is empty (#327)
- fix: skip forecast for past-only timeframes TheLastMonth/TheLastBillingMonth (#316)
- chore: Bump Microsoft.NET.Test.Sdk 18.5.1 → 18.6.0 (#326)
What's Changed
- fix: skip forecast for past-only timeframes (TheLastMonth, TheLastBillingMonth) by @PaulRispens in https://github.com/mivano/azure-cost-cli/pull/316
- Bump Microsoft.NET.Test.Sdk from 18.5.1 to 18.6.0 by @mivano in https://github.com/mivano/azure-cost-cli/pull/326
- Show 'No Anomalies Detected' message when anomaly list is empty by @mivano in https://github.com/mivano/azure-cost-cli/pull/327
- chore: remove unused prices command by @mivano in https://github.com/mivano/azure-cost-cli/pull/328
- feat: config file, --no-color, --quiet, fix empty formatter output by @mivano in https://github.com/mivano/azure-cost-cli/pull/331
- feat: cost threshold alerting commands for CI/CD gating by @mivano in https://github.com/mivano/azure-cost-cli/pull/330
New Contributors
- @PaulRispens made their first contribution in https://github.com/mivano/azure-cost-cli/pull/316
Full Changelog: https://github.com/mivano/azure-cost-cli/compare/0.55.0...0.57.0