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
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--lease_id | string | Lease 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_token | string | From 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
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Select a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Confirm forced compute:release-all --force. Other runtime commands do not read --yes. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Release a lease.
flywheel compute:release --lease_id l1 --lease_control_token tokOutput
Default format: json.
| Field | Type |
|---|---|
lease_id | string |
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 |
provider | string |
state | string |
status | string |
instance_status (optional) | string | null |
offer_id | string |
region | string |
price_cents_per_hour | integer |
total_charged_cents | integer |
created_at | string |
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 |
compute:options
List the compute machines (offers) you could rent for a node, from the providers this server has enabled. Returns `compute` with `detail`, `returned_options` and `options`; each compact row has `provider`, `offer_id`, `display_name`, `gpu_model`, `gpu_count`, `price_cents_per_hour`, `regions`, `allowed` and `preferred`. Pick a row with `allowed` true and pass its `offer_id` as `requested_sku` to compute-grants:request-approval and compute:acquire. Listing is free: it takes no grant and returns no budget or funding (see compute:funding).
compute:release-all
Queue teardown of every active lease in your --lease_control_token scope and return at once by default; each machine and its storage are then destroyed in the background, nothing snapshotted. --force --yes widens it to all of your active leases. Returns `request_state` `accepted`, `target_count` and `target_lease_ids`, or, when nothing matched, `request_state` `completed`, `outcome` `no_active_lease` and `target_count` 0. Check progress with compute:status. With a token, --wait adds status polling and returns `wait_result`; it does not make the server teardown synchronous.