flox generations rollback
command
NAME
flox-generations-rollback - switch to the previous live generation
SYNOPSIS
flox [<general-options>] generations rollback
[-d=<path> | -r=<owner/name>]
DESCRIPTION
Switch to the previous live generation of the environment.
Rolling back to the previous generation restores the environment’s manifest and lockfile to the state of the previous generation, sets it as the live generation, and adds an entry to generation history.
The previously live generation isn’t always N-1. If you’ve previously rolled back from generation 3 -> 2 then rolling back again will take you from generation 2 -> 3. Similarly if you’ve switched from generation 3 -> 1 then rolling back will take you from generation 1 -> 3.
Generations don’t always have a linear history. If you create generation 2 by installing a package, rollback to generation 1 and create generation 3 by installing another package, then generation 3 won’t contain the package from generation 2.
flox-generations-history(1)
can be
used to see the relationships between generations.
Environment Options
If no environment is specified for an environment command, the environment in the current directory or the active environment that was last activated is used.
-d
, --dir
Path containing a .flox/ directory.
-r
, --remote
A remote environment on FloxHub, specified in the form <owner>/<name>
.
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.
SEE ALSO
flox-generations-history(1)
flox-generations-list(1)
flox-generations-switch(1)