Skip to content

flow cache set

Set cached data by key.

Synopsis

The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes. Use the --global flag to force use of the global cache scope, even when called from within an executable.

This will overwrite any existing value for the key.

shell
flow cache set KEY [VALUE] [flags]

Options

FlagTypeDescription
-g, --globalForce use of the global cache scope, even when called from within an executable
-h, --helphelp for set
-o, --outputstringOutput format. One of: yaml, json, or tui.

Options inherited from parent commands

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also