nix store

Manipulate the Nix store. See also: tldr nix-store. More information: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-store.html.

nix store gc

nix store optimise

nix store delete /nix/store/...

nix store --store https://cache.nixos.org ls /nix/store/...

nix store diff-closures /nix/store/... /nix/store/...