diff --git a/concepts/activation.mdx b/concepts/activation.mdx index 4a75600..1f0113c 100644 --- a/concepts/activation.mdx +++ b/concepts/activation.mdx @@ -75,6 +75,8 @@ When you activate this way your existing shell is paused and you're put into a new one configured by Flox. Once this shell exits (via `exit` or `Ctrl-D`, for example), your original shell is resumed and your are put back into it. +Running [`flox deactivate`](/man/flox-deactivate) inside the subshell has the +same effect. ```mermaid %%{init: {'theme':'base','themeVariables':{'primaryColor':'#e8eef6','primaryBorderColor':'#7d96b8','primaryTextColor':'#1f2937','lineColor':'#7d96b8','noteBkgColor':'#e8eef6','noteTextColor':'#1f2937','noteBorderColor':'#7d96b8','actorBkg':'#e8eef6','actorBorder':'#7d96b8','actorTextColor':'#1f2937','actorLineColor':'#7d96b8','signalColor':'#1f2937','signalTextColor':'#1f2937','labelBoxBkgColor':'#e8eef6','labelBoxBorderColor':'#7d96b8','labelTextColor':'#1f2937','loopTextColor':'#1f2937','sequenceNumberColor':'#1f2937'},'sequence':{'mirrorActors':false}}}%% @@ -358,6 +360,15 @@ If you edit your manifest and activate in a new shell, the whole activation process is run again and subsequent activations will attach to this new version of the environment. +## Deactivating environments + +Activation is reversible. +[`flox deactivate`](/man/flox-deactivate) tears down the most recently +activated environment in your shell, +restoring the environment variables and shell customizations that activation +changed. +See [`flox deactivate`](/man/flox-deactivate) for the full command reference. + ## Development vs. runtime mode See the [`options.activate.mode`](/man/manifest.toml#options) option in the manifest.