nix-run
Run an application from a Nix flake. tldr-pages
On several platforms
Several platforms
Run the default application in the flake in the current directory
nix runIdentifyRun a command whose name matches the package name from nixpkgs (if you want a different command from that package, see tldr nix shell)
nix run nixpkgs#pkgIdentifyRun a command with provided arguments
nix run nixpkgs#vim -- path/to/fileIdentifyRun from a remote repository
nix run remote_name:owner/repositoryIdentifyRun from a remote repository using a specific tag, revision, or branch
nix run remote_name:owner/repository/referenceIdentifyRun from a remote repository specifying a subdirectory and a program
nix run "remote_name:owner/repository?dir=dir_name#app"IdentifyRun the flake of a GitHub pull request
nix run github:owner/repository/pull/number/headIdentify