Computers

Create a computer

Create a computer and confirm it is ready to run commands

You need the editor or admin role in your workspace. The examples use the CLI. Over MCP, an agent does the same with create_computer. The examples name the computer demo, which must be free in the workspace.

Create

Create a computer with the platform defaults:

nevia new demo

--image picks an image from the catalog. Without it, nevia new uses the platform default.

By default, the platform does not run an image's startup command. Start workloads with nevia exec. See nevia new for all options.

To group the computer with related work, add --project with a project's name. Projects are optional. See Group work in projects.

-e KEY=value sets an env var. -e secrets.NAME and -e variables.NAME pull values from the workspace. See Give computers secrets and variables and Computer environment variables.

Public API options

POST /v1/computers takes an optional image: the platform default or an image listed by GET /v1/images. The image cannot be changed after creation. Branches and checkpoint restores inherit it, so omit it when supplying from_checkpoint. An optional project puts the computer in a project of the same workspace.

Check the result

Inspect the computer with nevia status:

nevia status demo

The output shows state ready when creation finishes. If creation is still running, repeat the command or track the operation. If creation failed, the output includes an error.

When ready, url shows the computer's address. To serve a program, declare a port with -p 443:8080 on nevia new, or later with nevia set demo -p 443:8080. Then start a program that listens on that port. See Publish a computer on an HTTPS URL and Computer ports and URLs.

Commands start in your home directory. That directory lives on the persistent disk, which exists when the deployment has a storage pool. Keep files there to survive a branch or checkpoint. See Computer lifecycle states.

Next, run a command.

On this page