Home Explore Blog CI



nix

1st chunk of `src/nix/store-info.md`
430a4942295258c27d691311d41726da16bd42d2804d39aa00000001000002d1
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.

)""

Title: Nix Store Info Command: Examples and Description
Summary
The `nix store info` command tests the accessibility of a specified Nix store. Examples are provided for testing SSH connections, validating binary cache URLs, and checking the Nix daemon status. Success is indicated by a zero exit code and no output.