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 πŸŽ€

  1. 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
  1. 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 --json is also specified. so like, don't @ me if you use it alone πŸ’€
  • --recursive, -R β€” list subdirectories recursively. go all the way down, no skipping 🌈
  • --debug β€” set the logging verbosity level to 'debug'. maximum yapping mode πŸ”₯
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-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.
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.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