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 |
|
Use the instance identifier for later operations. |
Read instance metrics |
|
Read metrics before deciding on a lifecycle operation. |
Suspend, resume, or retry an instance |
|
|
Delete an instance |
|
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 |
|
Confirm that the current identity can manage specifications. |
List Worker images |
|
Lists available images. |
Administrator operations |
|
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.