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

Required:

  • workspaces
  • currentWorkspace

Properties:

FieldDescriptionTypeDefaultRequired
colorOverrideOverride the default color palette for the interactive UI. This can be used to customize the colors of the UI.ColorPalette
currentNamespaceThe 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.string
currentVaultThe name of the current vault. This should match a key in the vaults map.string
currentWorkspaceThe name of the current workspace. This should match a key in the workspaces or remoteWorkspaces map.string
defaultLogModeThe 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.stringlogfmt
defaultTimeoutThe default timeout to use when running executables. This should be a valid duration string.string30m
interactiveInteractive
templatesA map of flowfile template names to their paths.map (string -> string)map[]
themeThe theme of the interactive UI.stringdefault
vaultsA map of vault names to their paths. The path should be a valid absolute path to the vault file created by flow.map (string -> string)
workspaceModeThe 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.stringdynamic
workspacesMap of workspace names to their paths. The path should be a valid absolute path to the workspace directory.map (string -> string)

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

Properties:

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

Interactive

Configurations for the interactive UI.

Type: object

Properties:

FieldDescriptionTypeDefaultRequired
enabledboolean
notifyOnCompletionWhether to send a desktop notification when a command completes.boolean
soundOnCompletionWhether to play a sound when a command completes.boolean