Name

nix nario list - list the contents of a nario file

Synopsis

nix nario list [option...]

Examples

  • List the contents of a nario file:

    # nix nario list < dump.nario
    /nix/store/4y1jj6cwvslmfh1bzkhbvhx77az6yf00-xgcc-14.2.1.20250322-libgcc: 201856 bytes
    /nix/store/d8hnbm5hvbg2vza50garppb63y724i94-libunistring-1.3: 2070240 bytes
    …
    
  • Use --json to get detailed information in JSON format:

    # nix nario list --json < dump.nario
    {
      "paths": {
        "/nix/store/m1r53pnn…-hello-2.12.1": {
          "ca": null,
          "deriver": "/nix/store/qa8is0vm…-hello-2.12.1.drv",
          "narHash": "sha256-KSCYs4J7tFa+oX7W5M4D7ZYNvrWtdcWTdTL5fQk+za8=",
          "narSize": 234672,
          "references": [
            "/nix/store/g8zyryr9…-glibc-2.40-66",
            "/nix/store/m1r53pnn…-hello-2.12.1"
          ],
          "registrationTime": 1756900709,
          "signatures": [ "cache.nixos.org-1:QbG7A…" ],
          "ultimate": false
        },
        …
      },
      "version": 1
    }
    

Description

This command lists the contents of a nario file read from standard input.

Options

  • --json

    Produce output in JSON format, suitable for consumption by another program.

  • --long / -l

    Show detailed file information.

  • --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 the contents of NARs inside the nario.

  • --debug

    Set the logging verbosity level to 'debug'.

  • --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.

  • --verbose / -v

    Increase the logging verbosity level.

Miscellaneous global options

  • --help

    Show usage information.

  • --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.