nix-env
Manipulate or query Nix user environments. tldr-pages
On several platforms
Several platforms
List all installed packages
nix-env --queryIdentifyQuery installed packages (regex is supported)
nix-env --query search_patternIdentifyQuery available packages from the Nixpkgs registry
nix-env --query --available search_patternIdentifyInstall a package from the Nixpkgs registry
nix-env --install --attr nixpkgs.pkg_nameIdentifyInstall a package from a custom URL
nix-env --install pkg_name --file example.comIdentifyUninstall a package
nix-env --uninstall pkg_nameIdentifyUpgrade a package
nix-env --upgrade pkg_nameIdentifyGet usage help for a specific operation (--install, --upgrade, etc.)
nix-env --help --option_nameIdentify