Instance Management
CloudRift CLI provides commands for discovering available instance types and renting instances through the public API. These commands work with the CloudRift marketplace — unlike rift docker run which targets your own cluster, these commands rent instances from available providers.
Listing Instance Types
To see what instance types are available on the marketplace:
rift instance-type list
This displays available instance types along with availability information.
Filtering Results
Use --service to filter by instance service type:
rift instance-type list --service docker
rift instance-type list --service vm
Use --datacenter to filter by datacenter location:
rift instance-type list --datacenter us-east
Filters can be combined:
rift instance-type list --service vm --datacenter us-east
Renting an Instance
Every rental needs --instance-type, set to one of the names in the Variants column of rift instance-type list (for example generic-gpu.1). Whether you pass --image or --docker-image decides between a VM and a Docker container.
Renting a VM Instance
To rent a virtual machine, pass the URL of the VM disk image with --image:
rift instance rent --instance-type <VARIANT> --image <VM_IMAGE_URL> --ssh-key <KEY_NAME>
--ssh-key adds one of your saved SSH keys to the VM and can be repeated.
Renting a Docker Instance
To rent a Docker container, pass the image with --docker-image:
rift instance rent --instance-type <VARIANT> --docker-image pytorch/pytorch:latest
Other Rent Options
--namesets the instance name, whichrift instance inspectandrift instance sshaccept in place of the UUID.--datacentertargets one or more datacenters and can be repeated.--portexposes a port and can be repeated.--with-public-ipallocates a public IP address.--env KEY=VALUEand--docker-commandset the container's environment and command arguments; both can be repeated.--cloudinit-urlpoints a VM at a cloud-init configuration.
Tagging Instances
Use the --tag flag to attach free-form labels to an instance at rent time. The flag can be repeated:
rift instance rent --instance-type <VARIANT> --image <VM_IMAGE_URL> --tag training --tag team-a
Tags appear on instance listings and can be used to filter instances through the REST API.
Listing Instances
To list your instances:
rift instance list
By default the list covers every account you can rent from: your personal account and each team you belong to. Narrow it with a scope filter:
rift instance list --personal
rift instance list --team <TEAM_UUID>
--team can be repeated to include several teams, and --cluster selects the cluster to list within each account (default if omitted). Add --json to print the API response as JSON, without credentials, for scripts and tools.
Other display options: -l / --show-limits shows allocated memory and disk limits, -c / --show-config shows the instance configuration, -g / --gpu-list shows the allocated GPU PCI slots, and -t / --truncate-id shortens UUIDs.
Failure Reasons
Rentals that fail before becoming active are shown with the Failed status, and rift instance list displays the failure reason under the affected rental (for example a bad Docker image, a broken container command, or a VM boot failure). Terminating a Failed rental dismisses it: the status moves to Inactive and it disappears from the default listing. Its resources were already released when the failure was recorded.
Inspecting an Instance
To see the hardware and connection details of one rental:
rift instance inspect <INSTANCE>
<INSTANCE> is the instance name, its UUID, or an unambiguous UUID prefix. The output includes the instance's hardware and the SSH command to reach it. It accepts the same --personal, --team, and --cluster filters as rift instance list, and --json prints the API response as JSON without credentials.
Connecting with SSH
To open an SSH session to a rental:
rift instance ssh <INSTANCE>
As with inspect, <INSTANCE> can be a name, a UUID, or an unambiguous UUID prefix, and the scope filters apply. Options:
-u/--useroverrides the login user. It is required for Docker containers.-i/--identity-filesets the SSH private key to use.- Anything after
--runs as a remote command instead of opening a shell:
rift instance ssh my-vm -- nvidia-smi
Since v0.62.0, the server only accepts rift instance rent, rift instance list, and rift instance terminate from an up-to-date CLI. If these commands fail with an unsupported version error, update the CLI.
These commands interact with the CloudRift public API to rent instances from marketplace providers. For managing containers on your own cluster, see Launching Jobs. For managing VM lifecycle (start/stop), see VM Management. To let a coding agent use these commands, see AI Agent Skills.