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
Sleep When Idle
oblien lifecycle idle <ws-id> --after 15m
oblien lifecycle idle <ws-id> --after 15m --stop-after 72h
oblien lifecycle idle <ws-id> --disablePersistent workspaces with memory snapshot support can sleep after at least two minutes without web activity. Exposed port URLs and custom domains wake them. Saved memory is retained until wake unless --stop-after is set; after that limit the next request cold-boots with the files retained. See Sleep and wake on request.
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>]| Flag | Description |
|---|---|
--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