mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
31 lines
758 B
Plaintext
31 lines
758 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# nix flake
|
|
|
|
> Manage Nix flakes.
|
|
> 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>.
|
|
|
|
- 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:
|
|
|
|
`nix flake update {{input}}`
|
|
|
|
- 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:
|
|
|
|
`nix flake lock {{path/to/flake}}`
|
|
|
|
- Display help:
|
|
|
|
`nix flake --help`
|