LinuxCommandLibrary

nix-repl

starts interactive Nix shell

TLDR

Start Nix REPL

$ nix repl
copy
Load nixpkgs
$ nix repl '<nixpkgs>'
copy
Load flake
$ nix repl [.#]
copy
Load file
$ nix repl [file.nix]
copy

SYNOPSIS

nix repl [options] [files]

DESCRIPTION

nix repl starts interactive Nix shell. Evaluate expressions interactively.
The tool provides tab completion. Load packages and explore attributes.

PARAMETERS

FILES

Nix files to load.
--expr EXPR
Evaluate expression first.
--help
Display help information.

CAVEATS

Part of Nix CLI. :? for help. Expression evaluation.

HISTORY

nix repl provides interactive evaluation for exploring and debugging Nix expressions.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community