Skip to main content
styne is a single static binary for Linux and macOS (amd64 and arm64).

Install

The script needs no root and checks the release’s checksum before it installs; the options, the update and the uninstall are on Install the CLI.

Verify the download by hand

Run your first command

styne vm create starts base unless --template names another; styne template list shows the templates your key can start, with their aliases and size (--json for the API’s answer). styne login also takes the key from STYNE_API_KEY, which wins over the stored key, so CI jobs need no login step. styne vm exec runs a single argument through /bin/sh -c and several arguments as an argv, prints stdout and stderr as they stream, and exits with the command’s exit code. --api-url or STYNE_API_URL points the CLI at another API host.

Command reference

Quickstart: the command line walks the first run. Flags may stand before or after the sandbox id, except for exec and files, where everything after the id belongs to the remote command. If styne help does not list a command above, run the install one-liner again to update. Aliases: vm is also vms, and sandbox still works; template is also templates; list is also ls; kill is also rm; exec is also run. styne help and styne --help print the usage text.

Global flags and variables

Run commands

A single argument after -- runs through /bin/sh -c, so a shell line works; several arguments run as an argv, with no shell. Output arrives as it is produced, stdout on stdout and stderr on stderr. The CLI exits with the command’s exit code.

Exit codes

Files

files write and files read run through the sandbox’s shell (cat), so they move any bytes, text or binary, and the sandbox’s disk (1 GiB on base) is the limit. For links without a key and whole folders, see Files.

Uninstall

Run the installer with --uninstall; see Update and uninstall.