nix-shell.3
Start a shell in which the specified packages are available. tldr-pages
On several platforms
Several platforms
Start an interactive shell with some packages from nixpkgs
nix shell nixpkgs#pkg1 nixpkgs#packageSet.pkg2 ...IdentifyStart a shell providing a package from an older version of nixpkgs (21.05)
nix shell nixpkgs/nixos-21.05#pkgIdentifyStart a shell with the "default package" from a flake in the current directory, printing build logs if any builds happen
nix shell -LIdentifyStart a shell with a package from a flake on GitHub
nix shell github:owner/repo#pkgIdentifyRun a command in a shell with a package
nix shell nixpkgs#pkg -c some-cmd --someflag 'Some other arguments'Identify