nix3-hash-file - Man Page
print cryptographic hash of a regular file
Warning
This program is experimental and its interface is subject to change.
Synopsis
nix hash file [option…] paths…
Options
--base16Print the hash in base-16 format.
--base32Print the hash in base-32 (Nix-specific) format.
--base64Print the hash in base-64 format.
--sriPrint the hash in SRI format.
--typehash-algoHash algorithm (
blake3,md5,sha1,sha256, orsha512).
Miscellaneous global options
--helpShow usage information.
--offlineDisable substituters and consider all previously downloaded files up-to-date.
--optionname valueSet the Nix configuration setting name to value (overriding
nix.conf).--refreshConsider all previously downloaded files out-of-date.
--versionShow version information.
Note
See
man nix.conffor overriding configuration settings with command line flags.