approval-sessions:expire

Mark an approval session expired. Grants, leases and campaign budgets are untouched: machines keep running and keep billing until you release them with compute:release. Returns `approval_session` (now expired), `reason` (echoed back, not stored) and two lists, `expired_compute_grant_ids` and `released_lease_ids`, which are always empty (kept so older callers still find the fields).

Reference for flywheel approval-sessions:expire.

Command Group

Approvals & Budgets Commands

Summary

Mark an approval session expired. Grants, leases and campaign budgets are untouched: machines keep running and keep billing until you release them with compute:release. Returns approval_session (now expired), reason (echoed back, not stored) and two lists, expired_compute_grant_ids and released_lease_ids, which are always empty (kept so older callers still find the fields).

Effect

DESTRUCTIVE: deletes, overwrites or revokes something

Usage

flywheel approval-sessions:expire <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--session_idstringapproval_session.session_id from approval-sessions:heartbeat or approval-sessions:list. Unknown or not yours: error.

Optional flags

FlagValueDefaultChoicesDescription
--reasonstringFree text echoed back as reason; it is not stored and changes nothing. Omitted: approval_session_expired.
--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

Expire.

flywheel approval-sessions:expire --session_id s1

Output

Default format: json.

FieldType
approval_sessionobject
expired_compute_grant_idsarray<string>
released_lease_idsarray<string>
reasonstring