Skip to main content
Cloud environments define the isolated containers that Warp agents run in when you use oz agent run-cloud. An environment pins a Docker base image, specifies which Git repositories to clone, and configures setup commands that run after the repos are cloned. Reusing the same environment across many agent runs keeps your agents consistent and avoids repeating setup work.

Synopsis

Alias: oz e

Subcommands


oz environment list

Lists all cloud environments available to your account.

Examples


oz environment get

Retrieves details of a specific environment by its ID.

Arguments

Examples


oz environment create

Creates a new cloud environment.

Flags

string
required
Name of the environment.Short form: -n
string
Description of the environment. Maximum 240 characters.
string
Docker image to use as the base for this environment. Run oz environment image list to see suggested Warp dev images. If not specified, you will be prompted to select from available images interactively.Short form: -d
string
Git repository to clone into the environment, in owner/repo format. Repeatable — specify multiple times to clone multiple repositories.Short form: -r
string
Command to run after the repositories are cloned. Repeatable — specify multiple times to add multiple setup steps.Short form: -c

Examples


oz environment update

Updates an existing cloud environment. Only the fields you specify are changed; everything else is left as-is.

Arguments

Flags

string
New name for the environment.Short form: -n
string
New description (max 240 characters). Cannot be combined with --remove-description.
boolean
Remove the description from the environment. Cannot be combined with --description.
string
New Docker base image.Short form: -d
string
Git repository to add, in owner/repo format. Repeatable.Short form: -r
string
Git repository to remove, in owner/repo format. Repeatable.
string
Setup command to append to the list. Repeatable.Short form: -c
string
Setup command to remove from the list. Repeatable.
boolean
Force the update without checking for integration usage.

Examples


oz environment delete

Deletes a cloud environment.

Arguments

Flags

boolean
Delete without checking for integration usage.

Examples


oz environment image list

Lists available Warp dev base images from Docker Hub. Use the image names returned here as the value for --docker-image when creating or updating an environment.

Examples