Nix (command): Difference between revisions

imported>Mic92
imported>Mic92
No edit summary
Line 19: Line 19:


In the following we describe all sub commands of nix:
In the following we describe all sub commands of nix:
== Common flags ==
* <code>--debug</code> enable debug output
* <code>--help</code> show usage information
* <code>--help-config</code> show configuration options
* <code>--log-format FORMAT</code> format of log output; "raw", "internal-json", "bar" or "bar-with-logs"
* <code>--no-net</code> disable substituters and consider all previously downloaded files up-to-date
* <code>--option NAME VALUE</code> set a Nix configuration option (overriding nix.conf)
* <code>-L</code>, <code>--print-build-logs</code> print full build logs on stderr
* <code>--quiet</code> decrease verbosity level
* <code>--refresh</code> consider all previously downloaded files out-of-date
* <code>-v</code>, </code>--verbose</code> increase verbosity level
* <code>--version</code> show version information
In addition, most configuration settings can be overriden using <code>--name value</code>.
Boolean settings can be overriden using <code>--name</code> or <code>--no-name</code>. See <code>nix
--help-config</code> for a list of configuration settings.


== Main commands ==
== Main commands ==