April 29, 2024
CLI v0.12.0
CLI Refresh
Temporal CLI has had its internals rewritten to be more consistent and more maintainable. This includes many improvements, but also some known backwards incompatibilities from the previous 0.11.0 release.
💥 WARNING: There are known compatibility breaks with this release, see the sections below 💥
Known Improvements
The position of flags is no longer significant; flags can be placed anywhere in the command invocation
--output jsonnow makes sure to only output JSON to stdout (instances of invalid JSON output have been fixed)--output jsonlnow exists which disables indention/newline and, in some commands, streams lines of JSON instead of producing a single array--input-metais now supported so different encodings can be specified (e.g. Protobuf JSON)Log level customization added
envfile path can be customizedPayload shorthand support added, meaning most JSON base64 payloads are decoded to just show their contents
Exit codes are now non-zero in proper failing situations
--api-keyan now be used to set anAuthorizationheader withBearerprefixed token--tls-certand--tls-keydata now accepted in addition to just filesserver start-devnow uses common log framework so log level can be more easily customizedLogs now go to stderr instead of stdout
server start-devhas reduced output noise (with more reduction to come)workflow describenow has a text form instead of always JSONworkflow executenow streams event table instead of waiting on completionworkflow executeproperly shows non-zero exit code on failureworkflow executefollows continue-as-new by default
💥 Known Incompatibilities
All Commands
The shell-script-based install is no longer supported
Outputs in both JSON and plain text have been changed across most commands—notably, JSON keys are now camelCase
Duration flags need trailing unit suffix (i.e. e.g.
--workflow-timeout 5becomes--workflow-timeout 5s)--output tableand--output cardremoved and merged into--output textPager removed
TEMPORAL_CLI_SHOW_STACKSenvironment variable no longer supported--tls-ca-pathcan no longer be a URL--fieldscommand removed, commands now decide which fields should be present or not
Specific Commands
envcommands now expect--env,-kand-vflags rather than positional arguments (positional arguments will continue to work, but are now deprecated and a warning is emitted)operator namespacecommands now expect a-nflag to specify the namespace rather than a positional argument (the positional argument will continue to work, but is now deprecated and a warning is emitted)operator namespace updateno longer supports--verboseschedule createchanged--workflow-typeto be--typeserver start-devwith--db-filenameno longer auto-creates directory path of 0777 dirs if not presentworkflowand its subcommands no longer support--memo-fileworkflow executedoes not dump history by default when JSON is enabledworkflow executewhen using--event-details(née--fields long) shows full JSON attributes instead of wrapped partial tableworkflow executeno longer succeeds if workflow exists, but--allow-existingis presentworkflow reset-batchremoved in favor ofworkflow reset --querywith reset options (some previous reset types may not be supported)workflow showdoes not allow-fas an alias for--followworkflow startno longer succeeds if workflow exists, but--allow-existingis presentworkflow traceremoved while being repaired (inadvertently broken in last release)