Scroll to navigation

NIX(1) User Commands NIX(1)

NAME

nix - experimental cli for the nix package manager

SYNOPSIS

nix <COMMAND> <FLAGS>... <ARGS>...

DESCRIPTION

Common flags:

enable debug output
show usage information
show configuration options
set a Nix configuration option (overriding nix.conf)
decrease verbosity level
increase verbosity level
show version information

In addition, most configuration settings can be overriden using '--<name> <value>'. Boolean settings can be overriden using '--<name>' or '--no-<name>'. See 'nix --help-config' for a list of configuration settings.

Available commands:

add a path to the Nix store
build a derivation or fetch a store path
print the contents of a file inside a NAR file
print the contents of a store file on stdout
copy paths between Nix stores
copy-sigs
copy path signatures from substituters (like binary caches)
dump a store path to stdout (in NAR format)
open the Nix expression of a Nix package in $EDITOR
evaluate a Nix expression
print cryptographic hash of a regular file
print cryptographic hash of the NAR serialisation of a path
show the build log of the specified packages or paths, if available
show information about the contents of a NAR file
show information about a store path
replace identical files in the store by hard links
query information about store paths
test whether a store can be opened
start an interactive environment for evaluating Nix expressions
run a shell in which the specified packages are available
query available packages
show the Nix configuration
show the contents of a store derivation
sign the specified paths
convert a hash to base-16 representation
convert a hash to base-32 representation
convert a hash to base-64 representation
upgrade Nix to the latest stable version
verify the integrity of store paths
show why a package has another package in its closure

Note: this program is EXPERIMENTAL and subject to change.

November 2018 nix (Nix) 2.1.3