nix
package manager CLI
TLDR
Search packages
$ nix search nixpkgs [package]
Run package$ nix run nixpkgs#[package]
Build derivation$ nix build
Enter development shell$ nix develop
Show flake info$ nix flake show
Update flake$ nix flake update
Evaluate expression$ nix eval --expr "[1 + 1]"
Garbage collect$ nix store gc
SYNOPSIS
nix [command] [options]
DESCRIPTION
nix is the Nix package manager CLI. It provides reproducible package management.
The tool handles builds and environments. Supports flakes for reproducibility.
PARAMETERS
COMMAND
Nix subcommand.search QUERY
Search packages.run INSTALLABLE
Run a package.build
Build derivation.develop
Enter dev shell.flake ACTION
Flake operations.--help
Display help information.
CAVEATS
Steep learning curve. Nix expression language. Requires Nix installation.
HISTORY
Nix was created by Eelco Dolstra as his PhD thesis project, first released in 2003.
SEE ALSO
nix-shell(1), nixos-rebuild(1), home-manager(1)
