> ## 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.

# flox activate deny

## NAME

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

## SYNOPSIS

```text theme={null}
flox [<general-options>] activate deny
     [-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.

Prevents the selected environment from being auto-activated.

Once an environment is denied, the Flox prompt hook skips it silently
when you enter a directory containing it, and you are no longer prompted
for it. 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.

Denying an environment does not deactivate it if it is already active;
it only prevents future auto-activation. Run
[`flox-deactivate`](/man/flox-deactivate) to leave an environment
that is currently active.

By default `flox activate deny` targets the environment in the current
directory. Use `--dir` to target an environment in another directory.

To allow an environment to be auto-activated again, run
[`flox-activate-allow`](/man/flox-activate-allow).

See the *AUTO-ACTIVATION* section of
[`flox-activate`](/man/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

Deny auto-activation for the environment in the current directory:

```bash theme={null}
flox activate deny
```

Stop being prompted for an environment in another directory:

```bash theme={null}
flox activate deny -d /path/to/project
```

## SEE ALSO

[`flox-activate`](/man/flox-activate),
[`flox-activate-allow`](/man/flox-activate-allow),
[`flox-config`](/man/flox-config)
