# nevia exec

> Run a command in a computer

> Nevia is in beta and open to selected teams. Public launch in Dec 2026. The CLI installs with `curl -fsSL https://get.nevia.cloud | sh`, and the MCP server is at https://api.nevia.cloud/mcp. A person signs in once in the browser.
> Setup, sign-in and requesting access: [SKILL.md](https://nevia.cloud/SKILL.md). When Nevia fits and when it doesn't: [why.md](https://nevia.cloud/why.md).

> For the complete documentation index, see [llms.txt](https://nevia.cloud/llms.txt). This page's HTML version: https://nevia.cloud/docs/reference/cli/exec

`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
