compute:connection

Read SSH connection material for an active managed compute lease once compute:status indicates the lease is usable. Returns `compute` with `lease_id`, `lease_status`, `provider`, `offer_id`, `region`, `host`, `port`, `user`, `private_key` (the SSH private key: keep it secret), `known_hosts` and `next_retry_after_seconds`; host, port and key are empty until the lease is ready. Scoped to --lease_control_token, and only leases you own are connectable. Pass --lease_id or --node_id to pick one when several match.

Reference for flywheel compute:connection.

Command Group

Compute & Executions Commands

Summary

Read SSH connection material for an active managed compute lease once compute:status indicates the lease is usable. Returns compute with lease_id, lease_status, provider, offer_id, region, host, port, user, private_key (the SSH private key: keep it secret), known_hosts and next_retry_after_seconds; host, port and key are empty until the lease is ready. Scoped to --lease_control_token, and only leases you own are connectable. Pass --lease_id or --node_id to pick one when several match.

Effect

read-only

Usage

flywheel compute:connection <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--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
--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.
--node_idstringNode UUID (not a slug) from node_id in hosted:node:list or graph:get. Missing or hidden: 404 where the command loads it.
--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

Get connection.

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

Output

Default format: json.

FieldType
computeobject