All updates
0.1.0-beta.14
cloud

Sandal CLI and SDKs 0.1.0-beta.14

Create waits for brokered secrets, direct exec for every SDK handle, root commands on templates that allow it, device helpers, Windows VMs, and Python 3.11 or later.


Release candidate of the Sandal CLI and the TypeScript, Python and Go SDKs, not yet on the public registries (beta customers get it as a bundle). It replaces 0.1.0-beta.13, which was never published. Changes since 0.1.0-beta.8:

  • One setting: with only SANDAL_API_KEY set, the CLI and every SDK find the key's organization and project themselves.
  • Share links: sandal share <sandbox> <port> and share() print a link anyone can open without a key, for 1 minute to 24 hours, optionally single-use, revocable with sandal share revoke.
  • Secrets from the CLI: sandal secrets create | rotate | status | events | revoke | rm, delivered to a sandbox as an environment value or brokered (preview).
  • Create waits for brokered secrets: when a new sandbox's brokered secrets are still being set up, sandal create and the SDKs' create calls wait (at most 60 s) until they are live. If they are not live by then, you get the sandbox and a warning with the reason. Opt out with --no-wait-secrets, waitForSecretBrokering: false, wait_for_secret_brokering=False or NoSecretBrokeringWait: true.
  • Direct exec for every SDK handle: a handle you get later (by id, or from a create that did not wait) now finds the fast exec path itself and falls back to the API when the path is not offered. A one-shot sandal exec stays on the API path; --direct-exec opts in.
  • Long silent commands keep running: if the exec stream drops while a command prints nothing, the SDKs re-attach to the same process without losing or repeating output.
  • Root commands: sandal exec --root, exec(cmd, { user: "root" }) (TypeScript), exec(cmd, user="root") (Python) and User: "root" (Go) run as root on templates that allow it (see Root and FUSE). The default template refuses them with capability_unavailable (CLI exit code 7).
  • Windows VMs (preview): sandal windows-vms and sandal rdp, also in the Python and Go SDKs.
  • Android devices (preview): followLogs / follow_logs / FollowLogs, one-call tap, swipe, type and key; an operation that lost a race with another change is retried safely with the same idempotency key. sandal devices capabilities marks profiles where a warm start is likely.
  • The Python SDK needs Python 3.11 or later.

Also included, and off by default: an opt-in stream that carries several commands at once (sandal.exec.v2); no sandbox can use it yet, so leave it off.