ReferenceCLI

nevia exec

Run a command in a computer

nevia exec [FLAGS] [COMPUTER] [-- ARG]…

Runs the image ENTRYPOINT with the arguments after --, or the image CMD when there are none (--entrypoint replaces it, an empty string clears it). Piped stdin is sent once it closes, up to 1 MiB, or not at all with -n. The computer must be running: exec never wakes it and exits 5, so run nevia awake first.

Arguments

  • [COMPUTER] - Computer ID or name (optional when the workspace has one computer)
  • [-- ARG]… - Arguments for the image ENTRYPOINT after --, replacing the image CMD (default: the image's own command)

Options

  • -e, --env <KEY=VALUE> - Environment variable as KEY=VALUE for this command only (repeatable). See Computer environment variables in the reference
  • --entrypoint <PROGRAM> - Replacement for the image ENTRYPOINT (an empty string clears it)
  • -i, --interactive - Stream this terminal's stdin to the command
  • -t, --tty - Run the command in a terminal (implies -i)
  • -n, --no-stdin - Send no stdin, even when it is piped
  • --ttl <DUR> - Lifetime of the session URL with -i or -t, up to 12h (default 1h)
  • -h, --help - Print help

On this page