nix3-store-ls(1)
πΈ nix3-store-ls(1) πΈ
ok so bestie, this is a page from the General Commands Manual and it's literally all about snooping on stuff in the Nix store. pull up a chair, we're doing this π
β οΈ Warning β οΈ This program is experimental and its interface is subject to change. no cap. it might get a glow-up and change on you, so don't get too attached to the exact vibes, ok?
β¨ Name β¨
nix store ls β show information about a path in the Nix store π«Ά
β¨ Synopsis β¨
nix store ls [optionβ¦] path
β¨ Examples β¨
- To list the contents of a store path in a binary cache π
# nix store ls --store https://cache.nixos.org/ --long --recursive /nix/store/qbhyj3blxpw2i6pb7c6grc9185nbnpvy-hello-2.10
dr-xr-xr-x 0 ./bin
-r-xr-xr-x 38184 ./bin/hello
dr-xr-xr-x 0 ./share
β¦
- To show information about a specific file in a binary cache π₯
# nix store ls --store https://cache.nixos.org/ --long /nix/store/qbhyj3blxpw2i6pb7c6grc9185nbnpvy-hello-2.10/bin/hello
-r-xr-xr-x 38184 hello
β¨ Description β¨
This command shows information about path in a Nix store. and path? it can be a top-level store path or any file inside a store path. so like, the whole entire thing or just one lil file chilling inside it. iconic flexibility honestly π
β¨ Options β¨
--directory,-dβ show directories rather than their contents. like, we're looking at the folder itself, not what's inside it π--jsonβ produce output in JSON format, suitable for consumption by another program. feeding the robots, we love that for you π€--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.
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.
--recursive,-Rβ list subdirectories recursively. we're going alllll the way down π³οΈ
π¦ Logging-related options π¦
--debugβ set the logging verbosity level to βdebugβ. maximum yapping about what's happening π--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 bestie π£οΈ
π§ Miscellaneous global options π§
--helpβ show usage information.--offlineβ disable substituters and consider all previously downloaded files up-to-date. airplane mode but make it Nix βοΈ--optionname value β set the Nix configuration setting name to value (overridingnix.conf).--refreshβ consider all previously downloaded files out-of-date. spicy, we're re-checking everything π--versionβ show version information.
Note See man nix.conf for overriding configuration settings with command line flags.
and that's the whole page, periodt π this was nix3-store-ls(1) from the General Commands Manual β go forth and ls the store, you absolute main character β¨πΈ
π¦ 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