nix3-nar-ls(1)
π nix3-nar-ls(1) β General Commands Manual π
okay bestie, before literally anything else: β οΈ this program is experimental and its interface is subject to change. so like, it's giving "we're still figuring it out" energy, no cap. don't come for me when the flags shift under your feet. π«Ά
β¨ Name β¨
nix nar ls β show information about a path inside a NAR file πΈ
(iykyk: NAR = Nix Archive. it's the vibe.)
π¦ Synopsis π¦
nix nar ls [optionβ¦] nar path
π Examples π
- wanna list one specific file inside a NAR? iconic. do this:
# nix nar ls --long ./hello.nar /bin/hello
-r-xr-xr-x 38184 hello
- wanna go recursive on a directory inside a NAR and get it as JSON? periodt:
# nix nar ls --json --recursive ./hello.nar /bin
{"type":"directory","entries":{"hello":{"type":"regular","size":38184,"executable":true,"narOffset":400}}}
π Description π
This command shows information about a path inside Nix Archive (NAR) file nar. literally that's it. that's the whole job. and it ate. π
β¨ Options β¨
--directory,-dβ show directories rather than their contents. like, the folder itself is the moment, not what's inside π--jsonβ produce output in JSON format, suitable for consumption by another program. feed it to your lil scripts bestie π€--long,-lβ show detailed file information. the full tea β--no-prettyβ print compact JSON output on a single line, even when the output is a terminal. some commands may print multiple JSON objects on separate lines. also: see--pretty. π--prettyβ print multi-line, indented JSON output for readability.- Default: indent if output is to a terminal.
- This option is only effective when
--jsonis also specified. so like, don't @ me if you use it alone π
--recursive,-Rβ list subdirectories recursively. go all the way down, no skipping π
πΈ Logging-related options πΈ
--debugβ set the logging verbosity level to 'debug'. maximum yapping mode π₯--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-with-logs.--print-build-logs,-Lβ print full build logs on standard error.--quietβ decrease the logging verbosity level. shhh π€«--verbose,-vβ increase the logging verbosity level. tell me EVERYTHING π
π Miscellaneous global options π
--helpβ show usage information. your girl's got you π«Ά--offlineβ disable substituters and consider all previously downloaded files up-to-date.--optionname value β set the Nix configuration setting name to value (overridingnix.conf).--refreshβ consider all previously downloaded files out-of-date.--versionβ show version information.
Note π see man nix.conf for overriding configuration settings with command line flags.
and that's the whole page bestie, fr fr. this lil gem came out of the nix3-nar-ls(1) manual, and the footer was literally just the same name staring back at us β so consider this your cute lil sign-off: nix3-nar-ls(1), that's a wrap. slay, go list some NARs π β¨π¦
π¦ where this page comes from
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms