Reference

CLI command reference

Exact zeishctl commands, arguments, and behavior by operation.

On this page

Log in

Authenticate the CLI with browser OAuth and PKCE.

Command: zeishctl auth login

The CLI opens the authorization URL and stores tokens in its config directory.

bash
1zeishctl auth login

Authenticate with an API key

Authenticate the CLI with an API key.

Command: zeishctl auth api-key TOKEN --store

Use ZEISH_API_KEY for automation. Add --store only when the local config should retain the key.

bash
1zeishctl auth api-key TOKEN --store

Log out

Clear stored OAuth credentials.

Command: zeishctl auth logout

This removes the local access and refresh tokens.

bash
1zeishctl auth logout

Check auth status

See whether the CLI uses an API key or OAuth.

Command: zeishctl auth status

The output reports the active method without printing the credential.

bash
1zeishctl auth status

Generate shell completions

Write completion scripts for the CLI.

Command: zeishctl completion zsh

The shell is a positional argument. Redirect the script into your shell completion directory.

bash
1zeishctl completion zsh

Upgrade zeishctl

Install the latest or a selected CLI release.

Command: zeishctl upgrade --version 0.1.0

Omit --version to use the latest published release.

bash
1zeishctl upgrade --version 0.1.0

List organizations

List organizations visible to the authenticated identity.

Command: zeishctl orgs

The command calls the versioned organization endpoint and prints JSON.

bash
1zeishctl orgs

List templates

List visible sandbox templates.

Command: zeishctl templates

Use a returned template ID with sandboxes create.

bash
1zeishctl templates

List volumes

List organization volumes.

Command: zeishctl volumes

The response includes cursor pagination when more results are available.

bash
1zeishctl volumes

List networks

List organization networks.

Command: zeishctl networks

Use a returned network ID when creating or updating a sandbox.

bash
1zeishctl networks

List secrets

List secret metadata.

Command: zeishctl secrets list

Values are excluded from the list response.

bash
1zeishctl secrets list

Read a secret

Read one audited secret value.

Command: zeishctl secrets get SECRET_ID

Protect the terminal output. Secret reads are audited.

bash
1zeishctl secrets get SECRET_ID

Create a secret

Create a Vault-backed secret from stdin or a file.

Command: zeishctl secrets create NAME --provider-reference REF < value.txt

Use --value-file for a file. Avoid --value-unsafe because it exposes material in argv.

bash
1zeishctl secrets create NAME --provider-reference REF < value.txt

Update a secret

Update secret metadata or value.

Command: zeishctl secrets update SECRET_ID --name NAME < value.txt

Only supplied fields change. Value input follows the same safe stdin and file rules as create.

bash
1zeishctl secrets update SECRET_ID --name NAME < value.txt

Delete a secret

Delete one secret.

Command: zeishctl secrets delete SECRET_ID

Deletion is audited and removes provider material.

bash
1zeishctl secrets delete SECRET_ID

List SSH keys

List registered public keys.

Command: zeishctl ssh-keys list

Only public key data is returned.

bash
1zeishctl ssh-keys list

Add an SSH key

Register a public SSH key.

Command: zeishctl ssh-keys add NAME --path ~/.ssh/id_ed25519.pub

If --path is omitted, the CLI checks common ed25519 and RSA public key paths.

bash
1zeishctl ssh-keys add NAME --path ~/.ssh/id_ed25519.pub

Remove an SSH key

Revoke a registered public key.

Command: zeishctl ssh-keys remove KEY_ID

Sync the new key set into an existing sandbox separately.

bash
1zeishctl ssh-keys remove KEY_ID

List sandboxes

List compact sandboxes in the organization.

Command: zeishctl sandboxes list

Use sandboxes get for detail and runtime metadata.

bash
1zeishctl sandboxes list

Create a sandbox

Create a MicroVM sandbox.

Command: zeishctl sandboxes create NAME --template-id TEMPLATE_ID --cpu 4 --memory 4096

CPU is cores, memory is MB, and region defaults to bremen.

bash
1zeishctl sandboxes create NAME --template-id TEMPLATE_ID --cpu 4 --memory 4096

Get sandbox details

Read one sandbox record.

Command: zeishctl sandboxes get SANDBOX_ID

Poll this command when waiting for an asynchronous lifecycle transition.

bash
1zeishctl sandboxes get SANDBOX_ID

Clone a sandbox

Create a branch from an existing sandbox.

Command: zeishctl sandboxes clone SANDBOX_ID --name agent-copy

The name flag is optional.

bash
1zeishctl sandboxes clone SANDBOX_ID --name agent-copy

Start a sandbox

Request a stopped sandbox runtime.

Command: zeishctl sandboxes start SANDBOX_ID

Wait for running before using commands, files, or desktop access.

bash
1zeishctl sandboxes start SANDBOX_ID

Pause a sandbox

Pause a runtime while retaining state.

Command: zeishctl sandboxes pause SANDBOX_ID

Resume the sandbox before requesting data-plane work.

bash
1zeishctl sandboxes pause SANDBOX_ID

Resume a sandbox

Resume a paused runtime.

Command: zeishctl sandboxes resume SANDBOX_ID

Poll get or events until the status is running.

bash
1zeishctl sandboxes resume SANDBOX_ID

Stop a sandbox

Stop a runtime without deleting its record.

Command: zeishctl sandboxes stop SANDBOX_ID

Stopped sandboxes retain their configuration.

bash
1zeishctl sandboxes stop SANDBOX_ID

Delete a sandbox

Permanently delete a sandbox.

Command: zeishctl sandboxes delete SANDBOX_ID

Deletion is irreversible.

bash
1zeishctl sandboxes delete SANDBOX_ID

Read sandbox logs

Read captured sandbox output.

Command: zeishctl sandboxes logs SANDBOX_ID

The public API returns bounded history.

bash
1zeishctl sandboxes logs SANDBOX_ID

Read sandbox events

Read lifecycle events.

Command: zeishctl sandboxes events SANDBOX_ID

Use events to correlate asynchronous state changes.

bash
1zeishctl sandboxes events SANDBOX_ID

Get exec access

Mint data-plane credentials.

Command: zeishctl sandboxes exec-access SANDBOX_ID

The credential is short-lived and sandbox-scoped.

bash
1zeishctl sandboxes exec-access SANDBOX_ID

Sync sandbox SSH keys

Apply the user's current keys to a runtime.

Command: zeishctl sandboxes sync-ssh-key SANDBOX_ID

Run this after adding or removing a user SSH key.

bash
1zeishctl sandboxes sync-ssh-key SANDBOX_ID

Create a preview code

Mint temporary HTTP access to a port.

Command: zeishctl sandboxes preview-code SANDBOX_ID 3000 --ttl-seconds 300 --path /health

The port is positional. TTL and path are optional.

bash
1zeishctl sandboxes preview-code SANDBOX_ID 3000 --ttl-seconds 300 --path /health

Create tunnel access

Mint WebSocket access to exposed TCP ports.

Command: zeishctl sandboxes tunnel-access SANDBOX_ID --ttl-seconds 60

Use the SDK bridge or a compatible WebSocket client.

bash
1zeishctl sandboxes tunnel-access SANDBOX_ID --ttl-seconds 60

List sandbox snapshots

List snapshots for one sandbox.

Command: zeishctl sandboxes snapshots SANDBOX_ID

Snapshot IDs are sandbox-scoped.

bash
1zeishctl sandboxes snapshots SANDBOX_ID

Create a sandbox snapshot

Capture a runtime checkpoint.

Command: zeishctl sandboxes snapshots SANDBOX_ID create DISPLAY_NAME

Create from a live runtime and wait for readiness.

bash
1zeishctl sandboxes snapshots SANDBOX_ID create DISPLAY_NAME

Delete a sandbox snapshot

Delete one snapshot.

Command: zeishctl sandboxes snapshots SANDBOX_ID delete SNAPSHOT_ID

Snapshot deletion is irreversible.

bash
1zeishctl sandboxes snapshots SANDBOX_ID delete SNAPSHOT_ID

Execute a command

Stream a command through sandboxd.

Command: zeishctl sandboxes exec SANDBOX_ID -- COMMAND

Stdout and stderr are streamed and the exit code is printed.

bash
1zeishctl sandboxes exec SANDBOX_ID -- COMMAND

Open a shell

Open the browser terminal for a sandbox.

Command: zeishctl sandboxes shell SANDBOX_ID

The CLI prints the terminal URL and opens it when a browser is available.

bash
1zeishctl sandboxes shell SANDBOX_ID

Connect over SSH

Connect with local OpenSSH.

Command: zeishctl sandboxes ssh SANDBOX_ID

Pass additional SSH arguments after -- and use --identity-file when needed.

bash
1zeishctl sandboxes ssh SANDBOX_ID

Read a file

Read file contents from a sandbox.

Command: zeishctl sandboxes files SANDBOX_ID read /workspace/output.json

The path is resolved below the sandbox file root.

bash
1zeishctl sandboxes files SANDBOX_ID read /workspace/output.json

Write a file

Write text to a sandbox file.

Command: zeishctl sandboxes files SANDBOX_ID write /workspace/input.txt hello

Parent directories are created by the CLI.

bash
1zeishctl sandboxes files SANDBOX_ID write /workspace/input.txt hello

List a directory

List directory entries.

Command: zeishctl sandboxes files SANDBOX_ID ls /workspace --recursive

Use --recursive for nested entries.

bash
1zeishctl sandboxes files SANDBOX_ID ls /workspace --recursive

Create a directory

Create a directory in the sandbox.

Command: zeishctl sandboxes files SANDBOX_ID mkdir /workspace/results --parents

Use --parents to create missing ancestors.

bash
1zeishctl sandboxes files SANDBOX_ID mkdir /workspace/results --parents

Remove a path

Remove a file or directory.

Command: zeishctl sandboxes files SANDBOX_ID rm /workspace/results --recursive

Use --recursive for directories. Removing the file root is rejected.

bash
1zeishctl sandboxes files SANDBOX_ID rm /workspace/results --recursive

Rename a path

Rename or move a path.

Command: zeishctl sandboxes files SANDBOX_ID mv /workspace/a /workspace/b --overwrite

Use --overwrite to replace an existing destination.

bash
1zeishctl sandboxes files SANDBOX_ID mv /workspace/a /workspace/b --overwrite

Download a file

Stream a sandbox file to local storage.

Command: zeishctl sandboxes files SANDBOX_ID download /workspace/output.json ./output.json

The destination is a local path.

bash
1zeishctl sandboxes files SANDBOX_ID download /workspace/output.json ./output.json

Upload a file

Stream a local file into the sandbox.

Command: zeishctl sandboxes files SANDBOX_ID upload ./input.json /workspace/input.json

Parent directories are created for the first upload chunk.

bash
1zeishctl sandboxes files SANDBOX_ID upload ./input.json /workspace/input.json

Call an arbitrary API route

Use the CLI escape hatch for an HTTP operation without a named command.

Command: zeishctl api GET /api/v1/public/sandboxes

Pass JSON with --body. The request uses the configured API key or OAuth session.

bash
1zeishctl api GET /api/v1/public/sandboxes