compute:release

Destroy one lease's machine now. It waits for the provider's teardown to finish before it answers; compute:release-all, by contrast, only queues teardown. Teardown deletes the machine and its storage (the bundled disk and, on Nebius, the separate boot disk), so anything you did not export first is lost; nothing is snapshotted. Returns the lease after teardown; `state` and `error` report unconfirmed teardown. Global --wait does not change that server-side wait: it adds polling of compute:status in the token scope until `released` or `error` (404 also counts as released), returned as `wait_result`.

Reference for flywheel compute:release.

Command Group

Compute & Executions Commands

Summary

Destroy one lease's machine now. It waits for the provider's teardown to finish before it answers; compute:release-all, by contrast, only queues teardown. Teardown deletes the machine and its storage (the bundled disk and, on Nebius, the separate boot disk), so anything you did not export first is lost; nothing is snapshotted. Returns the lease after teardown; state and error report unconfirmed teardown. Global --wait does not change that server-side wait: it adds polling of compute:status in the token scope until released or error (404 also counts as released), returned as wait_result.

Effect

DESTRUCTIVE: deletes, overwrites or revokes something

Usage

flywheel compute:release <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--lease_idstringLease UUID (Flywheel's, not the provider's instance ID) from compute.lease_id in compute:acquire or compute.leases[].lease_id in compute:status.
--lease_control_tokenstringFrom compute.lease_control_token in compute:acquire; scopes the leases you control (not an SSH credential). No matching lease: empty status, no_active_lease from release-all, 403 on connect or single release.

Optional flags

FlagValueDefaultChoicesDescription
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILESelect a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL.
--outPATHWrite output to a file path, or use - for stdout.
--openOpen browser-bound URLs when supported.
--no-retryDisable transient-error retries.
--retry-maxNMaximum transient-error retry attempts.
--waitBlock on async operations until a terminal state is reached.
--wait-timeoutSECONDS600Seconds to wait for --wait before timing out. Defaults to 600.
--allow-selfAllow mutating the currently active credential.
--timeoutSECONDSSet the per-request timeout budget in seconds.
--idempotency-keyKEYReuse an Idempotency-Key so ambiguous write failures can be retried with the same key.
--forceForce safety-gated operations where supported.
--yesConfirm forced compute:release-all --force. Other runtime commands do not read --yes.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Release a lease.

flywheel compute:release --lease_id l1 --lease_control_token tok

Output

Default format: json.

FieldType
lease_idstring
acquire_node_id (optional)string | null
acquire_node_title (optional)string | null
acquire_root_node_id (optional)string | null
acquire_root_title (optional)string | null
providerstring
statestring
statusstring
instance_status (optional)string | null
offer_idstring
regionstring
price_cents_per_hourinteger
total_charged_centsinteger
created_atstring
activated_at (optional)string | null
released_at (optional)string | null
release_reason (optional)string | null
error (optional)string | null
ssh_host (optional)string | null
ssh_port (optional)integer | null
ssh_user (optional)string | null
has_ssh_private_key (optional)boolean
wait_result (optional)object