Documentation Index
Fetch the complete documentation index at: https://flox.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
NAME
flox-config - view and set configuration optionsSYNOPSIS
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:
- Environment variables. All config options may be set by prefixing
with
FLOX_and usingSCREAMING_SNAKE_CASE. For example,disable_metricsmay be set withFLOX_DISABLE_METRICS=true. - User customizations from
$FLOX_CONFIG_DIR/flox.tomlif set, otherwiseflox/flox.tomlin$XDG_CONFIG_HOMEor any of$XDG_CONFIG_DIRS, wherever it is found first. - System settings from
/etc/flox.tomlorFLOX_SYSTEM_CONFIG_DIR/flox.toml. floxprovided 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, --listList the current values of all options.
-r, --resetReset 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, --helpPrints help information. The following options can be passed when running any
flox subcommand
but must be specified before the subcommand.
-v, --verboseIncrease logging verbosity. Invoke multiple times for increasing detail.
-q, --quietSilence logs except for errors.
SUPPORTED CONFIGURATION OPTIONS
config_dirDirectory 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_dirDirectory where Flox should store ephemeral data (default:
$XDG_CACHE_HOME/flox).
data_dirDirectory where Flox should store persistent data (default:
$XDG_DATA_HOME/flox).
disable_metricsDisable collecting and sending usage metrics.
floxhub_tokenToken to authenticate on FloxHub.
hide_default_promptHide environments named ‘default’ from the shell prompt, and don’t add environments named ‘default’ to
$FLOX_PROMPT_ENVIRONMENTS (default:
true).
installer_channelRelease channel to use when checking for updates to Flox. Valid values are
stable, nightly, or qa. (default: stable)
search_limitHow many items
flox search should show by default.
set_promptSet shell prompt when activating an environment (default: true).
shell_prompt - DEPRECATEDRule 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 environmentshide-all: disables the modification of the shell prompthide-default: filters out environments nameddefaultfrom the shell prompt
state_dirDirectory 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_environmentsRemote environments that are trusted for activation. Contains keys of the form
"<owner>/<name>" that map to either "trust" or "deny".
upgrade_notificationsPrint notification if upgrades are available on
flox activate. The
notification message is:
ENVIRONMENT VARIABLES
$FLOX_DISABLE_METRICSVariable 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.