Compute-instance tasks

Use compute to inspect specifications, compute instances, runtime state, and metrics, then create, update, suspend, resume, retry, or delete instances.

moi-cli -o compute specs
moi-cli -o compute list
moi-cli compute --help

Manage the compute-instance lifecycle

Task

Commands

Notes

Create, inspect, or update an instance

create, get, update, runtime

Use the instance identifier for later operations.

Read instance metrics

metrics

Read metrics before deciding on a lifecycle operation.

Suspend, resume, or retry an instance

suspend, resume, retry

resume starts an instance that is suspended.

Delete an instance

preflight-delete, delete

Check deletion conditions first.

Run preflight-delete before deletion. After submitting a suspend, resume, retry, or delete operation, continue querying instance state or metrics to confirm the result; these operations can affect running tasks or incur resource costs.

Manage compute specifications

Task

Commands

Notes

Inspect or manage specifications

specs, spec-management-permission, create-spec, update-spec, set-spec-enabled

Confirm that the current identity can manage specifications.

List Worker images

worker-images

Lists available images.

Administrator operations

admin-list, admin-update, admin-runtime, admin-preflight-delete, admin-delete, admin-suspend, admin-resume, admin-retry

Use only when responsibility and permission are explicit, not for routine workspace-resource management.

Adopt ownership of a legacy compute instance

adopt-legacy-ownership records canonical ownership for a legacy compute instance through an audited repair operation. It is limited to a SuperAdmin with the applicable repair permission. Before running it, use get, runtime, or admin-list to confirm the instance identifier, current state, and permission. It changes the instance ownership relationship and is not a read-only check.

Query the instance and runtime again after adoption. If jobs still use the instance, confirm a migration window and dependent workloads before applying further lifecycle operations.

Last updated on