Repository navigation
2.15.0
Durable Workflow CLI 2.15.0
Development Server token file
dw server:start-dev --token-file reads a custom bearer token from a private
file, or from piped stdin with --token-file=-. A --token value appears in
the process list, where other local users can read it, and, when typed, in
your shell history. A token file keeps the token out of both. The CLI never
prints the token, and errors name the file but not its contents.
(umask 077; printf '%s\n' "$DEV_TOKEN" > ./dev.token)
dw server:start-dev --port=0 --token-file=./dev.token
# Or pipe it in
printf '%s\n' "$DEV_TOKEN" | dw server:start-dev --token-file=-The token must be alone on one line, as UTF-8 text. One trailing line ending
is ignored. The command refuses, with exit code 2, before it creates a data
directory or database:
--token-file=-when stdin is a terminal, which would echo the token as you
type it. Pipe the token or use a file.- A path that is not a regular file, such as a directory, device or named FIFO.
A symbolic link is judged by its target. Use--token-file=-for piped
input. - On Unix, a file owned by another user, or one with any group or world
permission bit. Usechmod 600. - A file that starts with a UTF-8 byte order mark, or that is not UTF-8.
- More than 4096 bytes, an empty or blank token, more than one line, or
surrounding spaces. --tokenand--token-filetogether.
--token and the default dev-token work as before. Use the --token-file=-
form for stdin, since --token-file - is read as a missing value.
The embedded development Server and Rust SDK dependency retain their existing
versions. Other changes since 2.14.0 only affect how CI tests the CLI and
builds releases from before 2.5.0.