summaryrefslogtreecommitdiffstats
path: root/src/nix/flake-archive.md
blob: 85bbeeb169cd2acbc5247ef41b287acfb06fea90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
R""(

# Examples

* Copy the `dwarffs` flake and its dependencies to a binary cache:

  ```console
  # nix flake archive --to file:///tmp/my-cache dwarffs
  ```

* Fetch the `dwarffs` flake and its dependencies to the local Nix
  store:

  ```console
  # nix flake archive dwarffs
  ```

* Print the store paths of the flake sources of NixOps without
  fetching them:

  ```console
  # nix flake archive --json --dry-run nixops
  ```

# Description

FIXME

)""