Warning
This program is experimental and its interface is subject to change.
Name
nix store
- manipulate a Nix store
Synopsis
nix store
[option...] subcommand
where subcommand is one of the following:
nix store add
- Add a file or directory to the Nix storenix store add-file
- Deprecated. Usenix store add --mode flat
instead.nix store add-path
- Deprecated alias tonix store add
.nix store cat
- print the contents of a file in the Nix store on stdoutnix store copy-log
- copy build logs between Nix storesnix store copy-sigs
- copy store path signatures from substitutersnix store delete
- delete paths from the Nix storenix store diff-closures
- show what packages and versions were added and removed between two closuresnix store dump-path
- serialise a store path to stdout in NAR formatnix store gc
- perform garbage collection on a Nix storenix store info
- test whether a store can be accessednix store ls
- show information about a path in the Nix storenix store make-content-addressed
- rewrite a path or closure to content-addressed formnix store optimise
- replace identical files in the store by hard linksnix store path-from-hash-part
- get a store path from its hash partnix store ping
- test whether a store can be accessednix store prefetch-file
- download a file into the Nix storenix store repair
- repair store pathsnix store sign
- sign store paths with a local keynix store verify
- verify the integrity of store paths
Options
Logging-related options
-
Set the logging verbosity level to 'debug'.
-
--log-format
formatSet the format of log output; one of
raw
,internal-json
,bar
orbar-with-logs
. -
--print-build-logs
/-L
Print full build logs on standard error.
-
Decrease the logging verbosity level.
-
--verbose
/-v
Increase the logging verbosity level.
Miscellaneous global options
-
Show usage information.
-
Disable substituters and consider all previously downloaded files up-to-date.
-
--option
name valueSet the Nix configuration setting name to value (overriding
nix.conf
). -
Consider all previously downloaded files out-of-date.
-
Show version information.
Note
See
man nix.conf
for overriding configuration settings with command line flags.