Releases: dash0hq/dash0-cli
Releases · dash0hq/dash0-cli
v1.8.1
Bug Fixes
check-rules:check-rules updatenow accepts PrometheusRule CRD files (#110)
Previously,check-rules update -ffailed with "no check rule ID provided" when given a PrometheusRule CRD file,
because it did not detect the kind and route to the PrometheusRule parser. Bothapplyandcheck-rules create
already handled this correctly.dashboards:dashboards updatenow accepts PersesDashboard CRD files (#111)
Previously,dashboards update -fdid not detect PersesDashboard CRD files, so the CRD-specific conversion
(v1alpha1/v1alpha2 normalization, ID extraction from labels, annotation mapping) was skipped.
Bothapplyanddashboards createalready handled this correctly.
v1.8.0
New Components
agent-mode: Add agent mode for AI coding agents (#68)
When active, agent mode defaults output to JSON, returns errors as JSON on
stderr, emits --help as structured JSON, skips confirmation prompts, and
disables colored output. Agent mode is activated via --agent-mode, the
DASH0_AGENT_MODE environment variable, or auto-detection of known AI agent
environment variables (CLAUDE_CODE, MCP_SESSION_ID, CURSOR_SESSION_ID, etc.).
v1.7.3
Bug Fixes
dashboards: Clear dashboard ID from the request body before update calls to avoid server-side rejection (#101)
When updating a dashboard whose user-defined ID is a UUID, the server rejects the request if the
same ID appears in both the URL path parameter and the request body. The CLI now strips the ID from
the body before sending the update, since it is already passed as the URL path parameter.dashboards: Fix PersesDashboard annotations (folder-path, sharing, source) being silently dropped during conversion (#103)
User-settable annotations (dash0.com/folder-path,dash0.com/sharing,dash0.com/source) on PersesDashboard CRDs
were not carried over when converting to a Dashboard definition, affecting bothapplyanddashboards create.
v1.7.2
Enhancements
query:--filternow accepts JSON filter criteria copied from the Dash0 UI (#96)
The --filter flag on logs query and spans query now accepts JSON arrays and objects
as produced by the Dash0 UI "copy filter criteria" feature, in addition to the
existing text-based filter syntax. JSON and text filters can be mixed freely.
Bug Fixes
apply: Preserve user-settable annotations and permissions on asset round-trips (#99)
dash0.com/folder-path,dash0.com/source, anddash0.com/sharingannotations were silently dropped duringapply,<asset> createand<asset> update.
spec.permissionson views and synthetic checks was also stripped.
v1.7.1
Enhancements
apply: Migrate asset create/update from Import APIs to standard CRUD APIs (#90)
Theapplycommand and individual assetcreate/updatesubcommands now use the standard
Create and Update APIs instead of the Import APIs, which are intended for one-time migrations.
Bug Fixes
apply: When an asset definition includes a user-defined ID,applynow always upserts, making repeated applies idempotent and preventing duplicate assets from being created. (#94)
v1.7.0
Enhancements
output: Theupdateandapplycommands now show a unified diff of changes (#66)dashboards:<asset> list -o yamland-o jsonnow output full asset definitions instead of summary list items (#67)
YAML output is a multi-document stream (separated by---) that can be piped directly todash0 apply -f -.
JSON output is an array of full asset definitions.
This applies to all four asset types: dashboards, check-rules, views, and synthetic-checks.
v1.6.0
v1.5.4
v1.5.3
v1.5.2
Enhancements
errors: Include API response body in error messages when the backend does not return a structured error (#75)
Previously, errors like 400 Bad Request only showed the HTTP status code and trace ID.
Now, the full response body is displayed so that users can see the reason for the failure.dashboards: Make the<id>argument ofdash0 <asset> updateoptional (#76)
When the<id>argument is omitted, the ID is extracted from the file content.
This applies to all asset types: dashboards, check rules, synthetic checks, and views.
Bug Fixes
dashboards: Fixdashboards updateoverwritingdash0Extensions.idwith the origin string (#77)
Unify ID and name extraction betweenapplyand per-asset CRUD commands by
delegating to sharedExtract*functions ininternal/asset/.dashboards: Stop force-setting origin in asset update commands (#78)
Thesynthetic-checks update,views update, andcheck-rules updatecommands
were force-setting the origin to"dash0-cli", causing 400 errors when updating
assets originally created with a different origin.