← 返回命令列表

Linux command

nix-flake 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show flake info

nix flake show

Update flake inputs

nix flake update

Lock flake inputs

nix flake lock

Initialize new flake

nix flake init

Check flake

nix flake check

Show flake metadata

nix flake metadata

Clone flake

nix flake clone [github:owner/repo]

说明

nix flake manages Nix flakes. Flakes provide reproducible, hermetic packages. The tool handles flake.nix files. Manages inputs and outputs.

参数

show
Show flake outputs.
update
Update inputs.
lock
Lock inputs.
init
Initialize flake.
check
Validate flake.
--help
Display help information.

FAQ

What is the nix-flake command used for?

nix flake manages Nix flakes. Flakes provide reproducible, hermetic packages. The tool handles flake.nix files. Manages inputs and outputs.

How do I run a basic nix-flake example?

Run `nix flake show` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does show do in nix-flake?

Show flake outputs.