Skip to main content

NAME

flox-config - view and set configuration options

SYNOPSIS

DESCRIPTION

Without any flags or when -l is passed, flox config shows all options with their computed value. Config values are read from the following sources in order of descending priority:
  1. Environment variables. All config options may be set by prefixing with FLOX_ and using SCREAMING_SNAKE_CASE. For example, disable_metrics may be set with FLOX_DISABLE_METRICS=true.
  2. User customizations from $FLOX_CONFIG_DIR/flox.toml if set, otherwise flox/flox.toml in $XDG_CONFIG_HOME or any of $XDG_CONFIG_DIRS, wherever it is found first.
  3. System settings from /etc/flox.toml or FLOX_SYSTEM_CONFIG_DIR/flox.toml.
  4. flox provided defaults.
flox config commands that mutate configuration always write to the user config file determined in step 2.

Key Format

<key> supports dot-separated queries for nested values, for example:

OPTIONS

Config Options

-l, --list
List the current values of all options.
-r, --reset
Reset all options to their default values without confirmation.
--set <key> <string>
Set <key> = <string> for a config key
--delete <key>
Delete config key

General Options

-h, --help
Prints help information.
The following options can be passed when running any flox subcommand but must be specified before the subcommand. -v, --verbose
Increase logging verbosity. Invoke multiple times for increasing detail.
-q, --quiet
Silence logs except for errors.

SUPPORTED CONFIGURATION OPTIONS

auth_notifications
Print the advisory FloxHub authentication messages. Set to false to quiet both the reminder to log in and the warnings that resolution will soon require authentication. Authentication errors are unaffected: commands that require a login, such as flox push, still fail with an explanation.
(default: true) auto_activate
How auto-activation treats environments you have not yet allowed or denied. Possible values are prompt (default), allowlist, and disabled. prompt asks before auto-activating an environment the first time you enter its directory. allowlist skips the prompt and auto-activates only environments you have already allowed with flox activate allow or a prior prompt. disabled turns auto-activation off entirely: nothing is auto-activated even if previously allowed. See the AUTO-ACTIVATION section of flox-activate.
auto_activate_environments
Per-directory auto-activation decisions. Keys are absolute paths to directories containing a .flox directory, each mapping to allow or deny. These are normally written for you by flox activate allow and flox activate deny rather than edited by hand.
A key may also be a glob pattern, so that one entry covers many directories: * matches a single directory name and ** matches any depth. An exact path always wins over patterns. If several patterns match a directory and disagree, the directory is denied. Patterns are matched against the canonical (symlink-resolved) directory path. Set patterns with flox config --set, quoting the key:
auto_activate_fish_mode
Controls how the fish shell hook responds to directory changes during auto-activation, mirroring direnv’s direnv_fish_mode. Possible values are eval_on_arrow (default), eval_after_arrow, and disable_arrow. eval_on_arrow evaluates on prompt and immediately when the working directory changes. eval_after_arrow evaluates on prompt and defers directory-change evaluation until just before the next command runs. disable_arrow evaluates on prompt only, ignoring directory changes.
config_dir
Directory where Flox should load its configuration file (default: $XDG_CONFIG_HOME/flox). This option will only take effect if set with $FLOX_CONFIG_DIR. config_dir is ignored.
cache_dir
Directory where Flox should store ephemeral data (default: $XDG_CACHE_HOME/flox).
data_dir
Directory where Flox should store persistent data (default: $XDG_DATA_HOME/flox).
disable_hook
Don’t set up the Flox prompt hook as part of activation. The prompt hook is required for auto-activation and for flox deactivate to take effect (default: false).
disable_metrics
Disable collecting and sending usage metrics.
floxhub_token
Token to authenticate on FloxHub.
hide_default_prompt
Hide environments named ‘default’ from the shell prompt, and don’t add environments named ‘default’ to $FLOX_PROMPT_ENVIRONMENTS (default: false).
installer_channel
Release channel to use when checking for updates to Flox. Valid values are stable, nightly, or qa. (default: stable)
search_limit
How many items flox search should show by default.
set_prompt
Set shell prompt when activating an environment (default: true).
shell_prompt - DEPRECATED
Rule whether to change the shell prompt in activated environments (default: show-all). This has been deprecated in favor of set_prompt and hide_default_prompt. Possible values are:
  • show-all: shows all active environments
  • hide-all: disables the modification of the shell prompt
  • hide-default: filters out environments named default from the shell prompt
state_dir
Directory where Flox should store data that’s not critical but also shouldn’t be able to be freely deleted like data in the cache directory. (default: $XDG_STATE_HOME/flox e.g. ~/.local/state/flox)
trusted_environments
Remote environments that are trusted for activation. Keys are of the form "<owner>/<name>" or can include a wildcard for environment names "<owner>/*". Values can be "trust" or "deny"
upgrade_notifications
Print notification if upgrades are available on flox activate. The notification message is:
(default: true) keep_tempdir
Flox creates a single tempdir for each process in $FLOX_CACHE_HOME/process. Flox will delete this tempdir upon conclusion of the process unless keep_tempdir == true AND verbose logs are enabled.

ENVIRONMENT VARIABLES

$FLOX_DISABLE_METRICS
Variable for disabling the collection/sending of metrics data. If set to true, prevents Flox from submitting basic metrics information such as a unique token and the subcommand issued.