Skip to content

nem exec

Run a command in the composed environment.

Run one command as a child process with the composed PATH and environment variables, and exit with its exact status. Nothing is installed; run nem sync first. Put -- before the command so its own flags are not parsed by nem.

Usage

nem exec [-- <cmd> [args...]]

Aliases: x

Examples

nem exec -- kubectl version --client   # one command
nem exec -- go test ./...              # a CI step

Global flags

--color, --narration, --quiet, and --verbose apply to every command; see nem.

See also