Skip to content

dicer token rotate

Gives a token a new secret, and prints the token anew. The old one is refused from its next call. A stream already open with it goes on until it ends. Give the new one to whatever used the old, with dicer remote delete and dicer remote create.

Usage

$ dicer token rotate NAME [flags]

Flags

FlagDescription
--format stringOutput format: table for the token alone, json or yaml. Default: table.
--secret-stdinRead the token’s new secret from standard input.

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local).
--request-timeout durationGive up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded).