CLICommands

lease

snug lease <COMMAND>

Lease exclusive, time-bound access to unique resources.

Subcommands

CommandWhat it does
resourcesLeasable resource administration
acquireAcquire a lease for a resource
statusShow lease status for a resource
renewRenew an active lease
releaseRelease an active lease
transferTransfer an active lease to another holder
bookingsBooking management
waiting-roomList the waiting room for a resource (admin)
validateValidate a lease id and fencing token
historyList lease history for a resource

Run snug lease <command> --help for that command's own options. The global options apply everywhere.

Examples

snug lease resources create --kind world_instance --display-name "World 123" --transferable
snug lease resources get <RESOURCE_ID>
snug lease acquire <RESOURCE_ID> --duration 1h
snug lease acquire <RESOURCE_ID> --duration 1h --metadata purpose=world_publish --on-conflict join-waiting-room
snug lease status <RESOURCE_ID>
snug lease renew <RESOURCE_ID> --lease lse_01JLEASE --fencing-token 184 --duration 30m
snug lease release <RESOURCE_ID> --lease lse_01JLEASE --fencing-token 184
snug lease transfer <RESOURCE_ID> --lease lse_01JLEASE --fencing-token 184 --to-holder agent_99
snug lease bookings create <RESOURCE_ID> --starts-at 2026-06-15T10:00:00Z --duration 1h
snug lease bookings list <RESOURCE_ID>
snug lease bookings cancel <RESOURCE_ID> --booking book_01JBOOK
snug lease waiting-room <RESOURCE_ID>
snug lease validate <RESOURCE_ID> --lease lse_01JLEASE --fencing-token 184 --machine world_lifecycle --transition publish
snug lease history <RESOURCE_ID> --page-size 20

Next

On this page