Skip to main content

NAME

flox-activate-allow - allow auto-activation for an environment

SYNOPSIS

flox [<general-options>] activate allow
     [-d=<path>]

DESCRIPTION

Experimental: Auto-activation is experimental and behind a feature flag, and its behavior is subject to change. Enable it by setting FLOX_FEATURES_AUTO_ACTIVATE=true in your environment, or by running flox config --set features.auto_activate true. See the AUTO-ACTIVATION section of flox-activate(1) for details.
Permits the selected environment to be auto-activated. Once an environment is allowed, the Flox prompt hook activates it automatically whenever you enter a directory containing it, without prompting (and deactivates it when you leave). The preference is stored in the user config file under auto_activate_environments, keyed by the absolute path of the directory that contains the .flox directory. By default flox activate allow targets the environment in the current directory. Use --dir to target an environment in another directory. To stop an environment from being auto-activated, run flox-activate-deny. See the AUTO-ACTIVATION section of flox-activate for the full picture, including the consent prompt and how to enable the feature.

OPTIONS

-d, --dir
Path containing a .flox/ directory (defaults to the current directory).

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.

EXAMPLES

Allow auto-activation for the environment in the current directory:
flox activate allow
Allow auto-activation for an environment in another directory:
flox activate allow -d /path/to/project

SEE ALSO

flox-activate, flox-activate-deny, flox-config