Skip to content

Config

User Configuration for the Flow CLI. Includes configurations for workspaces, templates, I/O, and other settings for the CLI.

It is read from the user's flow config directory:

  • MacOS: $HOME/Library/Application Support/flow
  • Linux: $HOME/.config/flow
  • Windows: %APPDATA%\flow

Alternatively, a custom path can be set using the FLOW_CONFIG_PATH environment variable.

Properties

FieldTypeDefaultRequiredDescription
colorOverrideColorPaletteOverride the default color palette for the interactive UI. This can be used to customize the colors of the UI.
currentNamespacestringThe name of the current namespace. Namespaces are used to reference executables in the CLI using the format workspace:namespace/name. If the namespace is not set, only executables defined without a namespace will be discovered.
currentVaultstringThe name of the currently active vault.
currentWorkspacestringThe name of the current workspace. This should match a key in the workspaces or remoteWorkspaces map.
defaultLogModestringlogfmtThe default log mode to use when running executables. This can either be hidden, json, logfmt or text hidden will not display any logs. json will display logs in JSON format. logfmt will display logs with a log level, timestamp, and message. text will just display the log message.
defaultTimeoutstring30mThe default timeout to use when running executables. This should be a valid duration string.
interactiveInteractive
templatesmap (string -> string)map[]A map of flowfile template names to their paths.
themestringdefaultThe theme of the interactive UI.
updateCheckbooleanfalseWhether to check for CLI updates in the background. When enabled, flow will periodically check GitHub for a newer version and display a notice if one is available after each command. Set FLOW_NO_UPDATE_CHECK=1 to suppress checks regardless of this setting.
vaultsmap (string -> string)A legacy map of vault names to their storage paths, retained for backwards compatibility. The authoritative list of vaults is discovered from the vault configuration directory managed by flow; this map is no longer required to reference or switch vaults.
workspaceModestringdynamicThe mode of the workspace. This can be either fixed or dynamic. In fixed mode, the current workspace used at runtime is always the one set in the currentWorkspace config field. In dynamic mode, the current workspace used at runtime is determined by the current directory. If the current directory is within a workspace, that workspace is used.
workspacesmap (string -> string)YesMap of workspace names to their paths. The path should be a valid absolute path to the workspace directory.

Definitions

ColorPalette

The color palette for the interactive UI. The colors can be either an ANSI 16, ANSI 256, or TrueColor (hex) value. If unset, the default color for the current theme will be used.

Type: object

FieldTypeDefaultRequiredDescription
blackstring
bodystring
borderstring
codeStylestringThe style of the code block. For example, monokai, dracula, github, etc. See chroma styles for available style names.
emphasisstring
errorstring
graystring
infostring
primarystring
secondarystring
successstring
tertiarystring
warningstring
whitestring

Interactive

Configurations for the interactive UI. Type: object

FieldTypeDefaultRequiredDescription
enabledbooleanYes
notifyOnCompletionbooleanWhether to send a desktop notification when a command completes.
soundOnCompletionbooleanWhether to play a sound when a command completes.