2025-05-08 12:26:01 -06:00
|
|
|
# nix flake
|
|
|
|
|
|
|
|
|
|
> Manage Nix flakes.
|
2026-02-18 06:55:01 -07:00
|
|
|
> Some subcommands such as `init`, `show`, `info` have their own usage documentation.
|
|
|
|
|
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake.html>.
|
2025-05-08 12:26:01 -06:00
|
|
|
|
|
|
|
|
- Update all inputs (dependencies) of the flake in the current directory:
|
|
|
|
|
|
|
|
|
|
`nix flake update`
|
|
|
|
|
|
|
|
|
|
- Update a specific input (dependency) of the flake in the current directory:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`nix flake update {{input}}`
|
2025-05-08 12:26:01 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Clone a GitHub repository containing a flake:
|
|
|
|
|
|
|
|
|
|
`nix flake clone {{github:owner/repo#attributes}}`
|
|
|
|
|
|
|
|
|
|
- Create missing lock file entries for a flake in a specified directory:
|
2025-05-08 12:26:01 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`nix flake lock {{path/to/flake}}`
|
2025-05-08 12:26:01 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`nix flake --help`
|