sandbox.id somewhere durable (a database, a queue message), and reconnect later with Sandbox.connect().
Sandbox.connect(id)- returns a livesandboxwithcommandsandfilesready to use. If the sandbox ispaused, it’s auto-resumed before returning.sandbox.getInfo()- fetch the current status and metadata for a sandbox you already have (read-only, no state change)
Find sandboxes with list
List all sandboxes on the team, or filter by metadata. Filters combine with AND.
list() returns an array of SandboxInfo - no live sandbox is constructed. Call Sandbox.connect(id) when you need one.