CLI

Overview

The oblien lifecycle command controls workspace lifecycle modes. Workspaces can be permanent (run indefinitely) or temporary (auto-stop/remove after a TTL expires).

Commands

Get Lifecycle Status

oblien lifecycle get <ws-id>

Set Permanent Mode

oblien lifecycle make-permanent <ws-id>

Workspace runs indefinitely until manually stopped or deleted.

Set Temporary Mode

oblien lifecycle make-temporary <ws-id> [--ttl <seconds>] [--ttl-action <action>]
FlagDescription
--ttl <seconds>Time-to-live in seconds
--ttl-action <action>stop or remove (default: stop)

Update TTL

oblien lifecycle update-ttl <ws-id> [--ttl <seconds>] [--ttl-action <action>]

Destroy Workspace

oblien lifecycle destroy <ws-id>

Destructive operation — prompts for confirmation before proceeding.

Examples

oblien lifecycle get ws_abc123
oblien lifecycle make-temporary ws_abc123 --ttl 3600
oblien lifecycle make-temporary ws_abc123 --ttl 7200 --ttl-action remove
oblien lifecycle update-ttl ws_abc123 --ttl 1800
oblien lifecycle make-permanent ws_abc123
oblien lifecycle destroy ws_abc123