Repository navigation
This is a cleanup release: flags, command names, output and exit codes now follow one set of rules across every command. It also adds --admin-access for workflows and safer defaults for login and config.
Most renamed flags and commands stop with exit code 2 and an error that names the new spelling. Four changes work differently without an error, so they come first.
✨ Highlights
Works differently now
exec workflowwaits for the run to finish (#858). The exit code is the run's result (0 success, 1 error or cancelled). Add--no-waitfor the old behavior;--waitis gone.- Command-line mistakes exit with 2 (#856, #837): missing or invalid flags, wrong argument counts, conflicting flags. Exit 1 now only means the command ran and failed.
-o yamluses the JSON field names (#861):bucketName, notbucketname. Old YAML files stillapply.config view,get-contextsandalias listuse the config file's keys;get copilot-skillsprintsname/type.- Agent mode prints one JSON envelope (#864) on every command, including
ctx token,ctx currentandversion. Scripts inside an agent session can add--no-agentfor the plain value. Streaming (--watch,--live,--follow,--stream) isn't available in agent mode.
Consistent names and flags
| Before | Now | |
|---|---|---|
| Cloud flags (#836) | --roleArn, --featureSets, --clientSecret, … |
--role-arn, --feature-sets, --client-secret, … (--locationFiltering → --locations) |
| Durations (#834) | exec analyzer|slo --timeout 300 |
--timeout 5m |
| Substring search (#853) | get workflows|users|groups|hub-extensions --filter foo |
--search foo |
| No waiting (#838) | exec analyzer --wait=false |
--no-wait |
| Skip prompts (#810) | restore … --force / -f |
--yes / -y (-f always means --file) |
| Follow logs (#810) | logs workflow-execution -f |
--follow |
--context (#833) |
diff --context N, exec copilot --context, verify openpipeline-matcher --context |
--context-lines, --chat-context, --stage (--context is always the dtctl context) |
| Commands (#862) | get wfe-task-result, edit setting, describe hub-extensions, get <cloud> monitoring |
get workflow-execution-task-result, edit settings, describe hub-extension, get <cloud> monitoring-configs |
| Aliases (#863) | az, exec cp, describe set, filter-segment(s), claim share |
analyzer(s), copilot, settings, segment(s), claim environment-share |
| Cloud selectors (#860) | update gcp connection --name X |
update gcp connection X |
| Removed (#857) | exec dql, exec workflow --params, apply --share-environment |
query, --input '<json>', share document <id> --environment link,public |
Also: diff -o json-patch is now diff --format json-patch, and DTCTL_EXPERIMENTAL_ACCOUNT/_SERVE are now DTCTL_DEVELOPMENT=account,serve.
Input is validated before the API call (#837): unknown --type/--state/--trigger values (the error lists valid ones), a filter or --limit combined with an ID, extra arguments, and unused or missing template variables.
Safer defaults
- Logging in again keeps a context's safety level (#803) instead of raising it to
readwrite-all. Pass--safety-levelto change it. ${VAR}references stay references (#701) whenctx,config setorauth loginrewrite the config.- Profiles allow only what they list:
apply extension-configno longer allows everyapply -f.
Workflow admin access (#702)
--admin-access reads and changes workflows you don't own, like admin mode in the Workflows app. Works on get, describe, edit, delete, history and restore for workflows and their executions, and on apply. Needs automation:workflows:admin. Experimental.
Embedding and Go SDK
APIError.Error()no longer includes the response body; read it fromAPIError.Details(#839).engine.ParsereportsMinimumScopes/MaximumScopesinstead ofRequiredScopes(#753).engine.Request.Headersare sent on every platform call, e.g. for correlation IDs.- Hosts running invocations concurrently keep their own telemetry: dtctl's span joins the host's trace through the new
tracing.Start(#882). - Removed:
client.NewFromConfigWithOAuth(useNewFromConfig) anddocument.Handler.SetDocumentPublic(useMakeDocumentPublic) (#857).
🐛 Fixes
- Key order is preserved through
apply,createandeditin JSON and YAML, e.g. notebook table columns (#806, #852). - Query cancel: a query cancelled under
engine.WithConcurrentExecutionis now also cancelled in Grail. - Tracing: span names and
process.command_argsname only the command (dtctl query), not the query text (#882). - GCP monitoring configs without a service account can be written again (#751).
get snapshotsfinds snapshots of new Live Debugger rules (#789).inventory arrivalskeeps sampling past an empty rung (#811).--check-scopesreports the right scope for each CoPilot skill (#739).querysuggeststoUid("…")when an empty result compares a uid field to a string (#795).
🔧 Maintenance
- Deprecated, still working:
--nameas a selector on cloud monitoring commands (removal planned for 0.50.0) andget trash --deleted-after|--deleted-before(use the new--deleted-since|--deleted-until, #854). SetDTCTL_NO_DEPRECATED=1to find them in your scripts. - Flag deprecations are recorded in the stability manifest (#866).
- Dependency updates: the
codeql-action,scorecard-action,cosign-installer,create-github-app-tokenandsbom-actionCI actions.
Full Changelog: v0.47.0...v0.48.0