ReferenceCLI

nevia exec

Run a command in a computer

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

Exits with the command's exit status. With no command, opens a shell.

Piped stdin is sent once it closes, up to 1 MiB; use -n when it never closes. 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)
  • [-- CMD]… - Command and arguments after -- (default: the computer's shell)

Options

  • -e, --env <KEY=VALUE> - Environment variable as KEY=VALUE for this command only (repeatable). See Computer environment variables in the reference
  • -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, -t or a shell, up to 12h (default 1h)
  • -h, --help - Print help

On this page