DocsAboraANIX Commands

ANIX Commands

ANIX is the command-line interface that makes NixOS accessible. Every action that would normally require editing Nix expressions is wrapped into a single intuitive command.

anix switch gaming

Switch your entire system to the 'gaming' configuration profile

anix rollback

Roll back to the previous system generation

anix status

Show the current system generation and configuration state

anix list-generations

List all available system generations with dates

anix boot-to gen 5

Set generation 5 as the next boot target

anix diff

Show what changed between the current and last generation

anix gc

Garbage collect old generations to free disk space

ANIX commands operate on your configuration.nix file. Every switch is atomic — if the build fails, your running system is untouched.