Home Explore Blog Models CI



nix

src/nix/store-info.md
217fad3b9f51c899e6921c655a5c1051f2b8bfcdedd5475400000003000002d1
R""(

# Examples

* Test whether connecting to a remote Nix store via SSH works:

  ```console
  # nix store info --store ssh://mac1
  ```

* Test whether a URL is a valid binary cache:

  ```console
  # nix store info --store https://cache.nixos.org
  ```

* Test whether the Nix daemon is up and running:

  ```console
  # nix store info --store daemon
  ```

# Description

This command tests whether a particular Nix store (specified by the
argument `--store` *url*) can be accessed. What this means is
dependent on the type of the store. For instance, for an SSH store it
means that Nix can connect to the specified machine.

If the command succeeds, Nix returns a exit code of 0 and does not
print any output.

)""

Chunks
891f8886 (1st chunk of `src/nix/store-info.md`)
Title: Nix Store Info Command for Accessibility Testing
Summary
The `nix store info --store <url>` command is used to test the accessibility of a specified Nix store. The specific test performed depends on the store type; for example, it checks SSH connectivity for an SSH store, validates a URL for a binary cache, or confirms the Nix daemon's status. If the command succeeds, it exits with a status code of 0 and produces no output.