Introducing a new way to review your PRs.

Read the announcement

superradcompany / microsandbox

🧱 easy, fast, programmable and local-first microVM runtime and library

View on GitHub

27 documents · Updated Nov 23, 2026

docs / cli-sandbox-operations

CLI sandbox operation flows

The msb command line interface creates and controls isolated sandboxes from a terminal. Its operation model separates saved sandbox configuration from running state. It also supports captured execution state, file transfer, remote access, named volumes, and machine-readable views for scripts.

See the parent command-line interface page for the wider CLI model. This page focuses on sandbox actions and their relationships. See sandbox lifecycle for the state model and managed jobs for detached command execution.

Sandbox operation model

Command group surface

The sandbox command group provides one public surface for creation, lifecycle control, inspection, interaction, and removal. Top-level shortcuts and aliases map to the same operation contracts, so msb sandbox, msb sbx, and direct command forms behave alike.

The CLI also provides observation and coordination actions. Operators can wait for shutdown, check agent reachability, refresh idle activity, read captured output, view metrics, and manage detached command jobs without changing saved sandbox configuration.

References: crates/…/mod.rs• L11-47 crates/…/common.rs• L52-74

Backend selection

Commands resolve the active backend before they act. The same CLI surface can inspect and manage sandboxes through a selected backend, while commands that need local-only state report an explicit error when a cloud backend is active.

Profiles can be listed, selected, or reset with msb context. Profile output reports policy and availability without exposing credentials. This keeps backend choice visible before a lifecycle or inspection command runs.

References: crates/…/common.rs• L31-74 crates/…/context.rs• L12-93

Sandbox lifecycle

A sandbox is a named or temporary execution environment built from an image, disk, host directory, or captured snapshot. A named sandbox keeps its saved configuration and writable state after it stops. An unnamed msb run sandbox is temporary and is removed when its command ends.

GoalCommandResult
Create and run a workloadmsb runCreates or reuses a sandbox and runs a command.
Create an idle environmentmsb createCreates and boots a sandbox without a foreground workload.
Resume a stopped environmentmsb startStarts one or more stored sandboxes.
End execution and keep statemsb stopGracefully stops sandboxes unless force mode is used.
Restart executionmsb restartStops active sandboxes and starts them from saved configuration.
Delete statemsb rmRemoves sandboxes and their associated state.
Pause resident executionmsb pausePauses a sandbox in place.
Resume resident executionmsb resumeResumes a paused sandbox in place.
Create an independent childmsb fork or msb branchCreates detached children from live or user-paused execution.
Restore captured statemsb restoreCreates a detached sandbox from an installed snapshot or archive.

This diagram shows the usual path from launch to later maintenance.

flowchart TD
    A[Image or snapshot] --> B[msb run or msb create]
    B --> C[Created or running]
    C -->|msb exec / msb copy / msb ssh| D[Workload interaction]
    C -->|msb stop| E[Stopped with saved state]
    C -->|msb pause| P[Paused in place]
    P -->|msb resume| C
    C -->|msb fork or msb branch| H[Independent child]
    P -->|msb fork or msb branch| H
    E -->|msb start| C
    C -->|msb restart| E
    E -->|msb inspect / msb snapshot create| F[Review or preserve state]
    F -->|msb restore| C
    E -->|msb rm| G[Removed]

References: crates/…/run.rs• L110-140 crates/…/create.rs• L33-79 crates/…/start.rs• L34-69 crates/…/stop.rs• L43-74 crates/…/restart.rs• L55-99 crates/…/remove.rs• L38-79 crates/…/pause.rs• L38-54 crates/…/branch.rs• L11-39 crates/…/restore.rs• L23-55

Sandbox targets

Commands that act on existing sandboxes accept names. Start, stop, restart, remove, ping, and touch can also select sandboxes by one or more labels. Repeated label filters are matched together, and named targets can be combined with label-selected targets.

Use a name when one known sandbox must change. Use labels when one lifecycle or activity action must apply to a set of sandboxes.

References: crates/…/common.rs• L3653-3728 crates/…/start.rs• L13-24 crates/…/stop.rs• L13-23 crates/…/restart.rs• L17-27 crates/…/remove.rs• L13-23 crates/…/ping.rs• L15-29 crates/…/touch.rs• L13-23

Sandbox creation and launch

Run flow

msb run combines sandbox creation, boot, command execution, and cleanup. With --name, it creates a persistent sandbox or reuses an existing one. Without a name, it creates an ephemeral sandbox that is removed after the run.

For a new sandbox, the CLI resolves the image, snapshot source, and requested settings before launch. A command after -- replaces the image command while keeping the image entry point. Detached mode boots in the background and prints the name.

When a named sandbox already exists, msb run starts it if stopped or connects to it if running. It does not silently rebuild it. Use --replace to recreate it. In detached reuse mode, a command after -- is not applied; use msb exec for a new command.

Snapshot sources can be an installed group or explicit archive paths. --checkpoint selects a group member. --disk-only cold-boots captured disk state, while --cow-mem restores full state with private copy-on-write memory.

References: crates/…/run.rs• L18-69 crates/…/run.rs• L110-140 crates/…/run.rs• L143-180 crates/…/run.rs• L183-253 crates/…/snapshot_source.rs• L14-50 crates/…/snapshot_source.rs• L76-128

Create flow

msb create prepares a persistent sandbox and boots it in the background without starting a foreground workload. It is the right flow for an idle development environment, a service driven later by msb exec, or a sandbox that another CLI operation must reach.

It uses the same image, snapshot, resource, mount, network, and guest clock settings as msb run. If no name is supplied, the CLI generates one and prints it for later use.

References: crates/…/create.rs• L12-27 crates/…/create.rs• L33-90 crates/…/common.rs• L145-254

Configuration resolution

Single-sandbox creation commands can combine a root configuration file with scoped resource, runtime, filesystem, network, secret, or script files. The CLI applies sources in command-line order. Later values take precedence, followed by explicit command-line flags.

The merge rule depends on the value:

  • Scalar settings and lists use the higher layer when it supplies the field.
  • Environment variables, labels, initialization environment, scripts, and secrets merge by key.
  • A network source with a base policy or policy rules replaces the lower policy.
  • The positional image takes precedence over the image in a file.
  • Filesystem paths resolve relative to the file that declares them.

Invalid or unsafe configuration fails before launch. This gives run and create the same configuration contract.

References: crates/…/common.rs• L110-142 crates/…/common.rs• L1247-1321 crates/…/sandbox_config.rs• L44-92 crates/…/sandbox_config.rs• L632-772

Installed command aliases

msb install turns a sandbox definition into a user-facing executable alias. A persisted alias reuses one named sandbox, so installed packages and files remain across calls. A --tmp alias creates a fresh temporary sandbox for each call.

Install validates the merged definition before it writes the alias. It stores configuration paths in a form that does not depend on the caller's later working directory. msb install --list shows generated aliases and their mode and command, while msb uninstall removes only aliases generated by msb install.

References: crates/…/install.rs• L32-120 crates/…/install.rs• L127-213 crates/…/install.rs• L295-374 crates/…/uninstall.rs• L14-81

Image preparation

Images are local launch artifacts used by msb run and msb create after a pull or archive load. The image commands list, inspect, load, save, remove, and prune cached images. Registry login supplies private-image access for pulls without printing credentials.

These actions manage the image cache rather than sandbox state. An image that a sandbox still uses cannot be removed through the normal safe path.

References: crates/…/mod.rs• L82-118 crates/…/common.rs• L1149-1244

Sandbox lifecycle control

Start and stop flow

msb start resumes a stored sandbox from saved configuration. msb stop ends a running sandbox while keeping its stored state for a later start. Both commands can process several targets selected by name or label.

Stop is graceful by default. It gives the workload time to finish pending writes. --force ends it at once, and --timeout sets the grace period before the command reports that the stop did not finish.

References: crates/…/start.rs• L13-69 crates/…/stop.rs• L13-91

Restart flow

msb restart provides one lifecycle action for services that need a refresh. Active, draining, and paused sandboxes use the stop-then-start path. Created, stopped, and crashed sandboxes start directly. A sandbox that is already starting is rejected.

Restart uses a bounded graceful stop budget. --force skips that graceful phase, while --timeout sets the budget explicitly.

References: crates/…/restart.rs• L17-42 crates/…/restart.rs• L55-99 crates/…/restart.rs• L152-171

Resident pause and resume flow

msb pause suspends a sandbox in place. msb resume returns it to execution without a stop-and-start lifecycle. This keeps the sandbox resident for later work such as forking.

Pause can request guest writeback. The guest clock policy also affects resume: sync follows host time, while off keeps the captured guest time.

References: crates/…/pause.rs• L11-31 crates/…/pause.rs• L38-54 crates/…/common.rs• L188-191

Remove flow

msb rm deletes a sandbox and its stored state. It expects the sandbox to be removable in its current state unless --force is supplied. Force mode stops a running sandbox before removal.

Removal differs from stop. Stop preserves a sandbox for later use. Remove ends its lifecycle. Installation-wide cleanup is separate: msb self uninstall can remove sandbox state, named volumes, image cache, aliases, database, logs, and secret stores.

References: crates/…/remove.rs• L13-79 crates/…/self_cmd.rs• L167-186 crates/…/self_cmd.rs• L310-346

Fork flow

msb fork creates independent child sandboxes from a running or user-paused local sandbox. msb branch remains a visible alias. The child is detached after creation, so the source remains available to the operator.

The command can create one named child or several children with --names. It can bind destination volumes, host disks, vsock endpoints, and published ports. These destination choices are shared with restore.

References: crates/…/branch.rs• L11-39 crates/…/branch.rs• L45-103 crates/…/restore.rs• L57-90 crates/…/restore.rs• L292-353

Temporary start ownership

Interaction commands can start a stopped or crashed sandbox for the duration of one operation. If the sandbox was already running, the command connects to it and leaves it running. If the command started it, the command stops it after the operation.

This rule keeps exec, copy, and SSH useful for stopped sandboxes without changing the expected lifecycle of an already running sandbox.

References: crates/…/mod.rs• L53-65 crates/…/mod.rs• L77-143 crates/…/exec.rs• L169-189 crates/…/copy.rs• L92-149 crates/…/ssh.rs• L175-208

Sandbox discovery and change

List and status flow

msb ls gives a compact view of stored sandboxes. It can show all sandboxes or filter for running, stopped, or label-matched entries. msb status and its ps alias focus on active status and resource information. Both support JSON output for scripts.

Status uses the active resource view when a sandbox is running. This makes live CPU and memory changes visible instead of showing only the next saved configuration.

References: crates/…/list.rs• L15-99 crates/…/ps.rs• L14-104 crates/…/ps.rs• L154-186

Inspect flow

msb inspect gives the detailed view needed to understand a sandbox. It reports identity, status, image, resources, runtime settings, mounts, labels, dates, and storage use. JSON output is intended for structured tools.

When a running sandbox has saved changes waiting for restart, inspect shows the active and desired values together with the pending effect. If storage measurement fails, it reports the reason instead of treating the value as zero. The command can also inspect a managed job with --job.

References: crates/…/inspect.rs• L61-74 crates/…/inspect.rs• L88-137 crates/…/inspect.rs• L395-471

Wait flow

msb wait observes a sandbox until it reaches Stopped or Crashed. A timeout ends the CLI wait but does not terminate the sandbox. JSON output includes the terminal status and available exit details.

The same command can wait for a managed job with --job. A job wait returns the job result and uses the job exit code for the CLI process.

References: crates/…/wait.rs• L14-31 crates/…/wait.rs• L37-93 crates/…/jobs.rs• L148-167

Modify flow

msb modify changes the saved configuration of an existing sandbox and reports a plan before applying it. The plan groups resource, disk, environment, label, working-directory, secret, and published-port changes by effect: some apply live, some apply on the next start, and some require an immediate restart.

Use --dry-run to review the plan. Use --next-start to save restart-backed changes without changing the running VM. Use --restart when those changes must become active now. Environment and working-directory changes affect future msb exec commands, not processes that already run.

Live CPU and memory changes can remain in a convergence state while the guest catches up. --wait lets the command report confirmed completion within a time budget. --compact is a separate storage maintenance action for sealed root or owned-disk layers; it does not change snapshots.

References: crates/…/modify.rs• L28-147 crates/…/modify.rs• L154-278 crates/…/modify.rs• L281-323 crates/…/modify.rs• L385-507

Storage observation and cleanup

msb df reports local storage across images, snapshots, branch memory, sandboxes, and volumes. msb prune targets only unused runtime memory cache. It previews eligible files and checks ownership again before removal.

Sandbox diagnosis and repair use msb self doctor and msb self repair. Diagnosis is read-only. Repair keeps original disk files and requires a stopped, safe-to-inspect sandbox; interactive repair can request consent to stop blocking writers.

References: crates/…/storage_doctor.rs• L43-83 crates/…/repair.rs• L22-47 crates/…/repair.rs• L80-186 crates/…/interactive.rs• L42-55

Sandbox interaction

Exec flow

msb exec runs a command inside an existing sandbox. It connects to a running sandbox. For a stopped or crashed sandbox, it starts the sandbox for the operation and stops it again afterward. It does not stop a sandbox that was already running.

An explicit command after -- runs directly. When no command is supplied, interactive use falls back to the configured shell or /bin/sh; non-interactive use needs a command or configured default. A command can receive its own environment, working directory, user, timeout, and resource limits.

The CLI selects an interactive terminal when host input is a terminal unless --no-tty or --no-stdin disables that behavior. --stream provides byte-preserving input and output through a pipe. Detached execution creates a managed job and prints its ID, but it requires the sandbox to already be running.

References: crates/…/exec.rs• L27-85 crates/…/exec.rs• L92-191 crates/…/exec.rs• L198-301

Managed job flow

Managed jobs are named command executions that remain addressable after detached msb exec returns. The CLI can list them, inspect retained metadata, wait for completion, attach to input and output, send a Linux guest signal, kill them, or close pipe input without terminating the process.

Job listing is sandbox-scoped and supports retained completed jobs, page size, cursors, and JSON output. Waiting does not consume output, and a wait timeout does not terminate the job. Attach can be read-only. Ctrl-C detaches from an interactive attach without killing the job.

References: crates/…/jobs.rs• L13-63 crates/…/jobs.rs• L69-167 crates/…/jobs.rs• L169-263

Copy flow

msb copy moves files and directories between the host and a sandbox. It also supports copying within one sandbox or between two sandboxes. A sandbox endpoint uses SANDBOX:/absolute/path; a host path can use ./ when its text could look like a sandbox endpoint.

Copy follows cp-style destination rules. An existing directory or a destination ending in / receives the source basename. Otherwise the destination path is used. Directory copies recurse and preserve relevant modes and links. Copy-out confines guest-derived paths below the selected host destination.

References: crates/…/copy.rs• L38-85 crates/…/copy.rs• L92-149 crates/…/copy.rs• L152-179 crates/…/copy.rs• L281-305 crates/…/copy.rs• L354-455 crates/…/destination_tests.rs• L185-203

SSH connection flow

msb ssh provides an interactive shell or a remote command through an SSH session. The CLI starts or connects to the target sandbox, opens its SSH service, and restores a temporarily started sandbox when the session ends. msb ssh serve exposes that service through a local listener or standard input and output.

Use msb ssh authorize to add a validated public key to the local authorization store. A remote command returns its exit status to the CLI. Session inactivity can use a configured timeout or be disabled explicitly.

References: crates/…/ssh.rs• L22-56 crates/…/ssh.rs• L142-209 crates/…/ssh.rs• L211-287 crates/…/ssh.rs• L304-337

Captured output flow

msb logs reads captured sandbox output without starting a new workload. It can select user output or system entries. The default view shows user-program output.

The command supports tails, time windows, regular-expression filtering, timestamps, session IDs, color control, JSON Lines output, and follow mode. A job selector reads the selected managed job's output through the same filtering and rendering surface. Follow mode ends when the sandbox stops or when the follower misses a log rotation and must be restarted.

References: crates/…/logs.rs• L43-109 crates/…/logs.rs• L180-255 crates/…/logs.rs• L257-321 crates/…/logs.rs• L454-507

Reachability flow

msb ping checks whether one or more sandbox agents are reachable. --touch follows a successful ping by refreshing the sandbox idle timer. msb touch performs the idle refresh without a reachability check.

These commands are activity operations. They do not create a sandbox or change its saved configuration.

References: crates/…/ping.rs• L15-33 crates/…/ping.rs• L40-112 crates/…/touch.rs• L13-75

Snapshot and volume operations

Snapshot flow

Snapshots preserve sandbox disk or execution state as named, indexed artifacts. A disk checkpoint captures durable disk state. A full checkpoint also captures memory, execution, and device state from a running sandbox. Guest writeback policy controls the capture boundary.

Snapshots can be installed in a named group or written directly to an archive. Group members form a lineage, and a group head selects the default member for later launch. Export can include parent and image artifacts. Import resolves a set of related archives together.

The snapshot commands provide this artifact flow:

  • msb snapshot create creates a group with its first checkpoint or writes an archive.
  • msb snapshot checkpoint appends a checkpoint to an existing source-bound group.
  • msb snapshot list finds groups or checkpoints.
  • msb snapshot inspect shows group and checkpoint state.
  • msb snapshot verify checks content integrity.
  • msb snapshot save or msb snapshot export writes an archive.
  • msb snapshot load or msb snapshot import imports archives.
  • msb snapshot reindex rebuilds the local index.
  • msb snapshot head reads a group's selected head.
  • msb snapshot modify selects or clears a group's head.
  • msb snapshot rm removes checkpoints or whole groups subject to dependency protection.
  • msb snapshot restore uses the restore flow to create a sandbox.

This diagram shows how a sandbox becomes reusable captured state.

flowchart LR
    A[Sandbox] -->|snapshot create or checkpoint| B[Snapshot group or archive]
    B -->|inspect / verify / list| C[Selected artifact]
    C -->|export| D[Portable archive]
    D -->|import| B
    C -->|restore| E[Detached sandbox]

References: crates/…/snapshot.rs• L22-75 crates/…/snapshot.rs• L77-174 crates/…/snapshot.rs• L176-364 crates/…/snapshot.rs• L389-405 crates/…/snapshot.rs• L407-490 crates/…/snapshot.rs• L499-605

Restore flow

msb restore turns an installed snapshot or archive into a new detached sandbox. A full restore brings back captured execution state. --disk-only cold-boots from captured disk without restoring processes or memory. --cow-mem gives a full restore private copy-on-write memory mappings.

Restore separates captured state from destination policy. The operator can bind volumes, host disks, vsock endpoints, and published ports. Destination controls can set guest resources, security, lifetime, idle behavior, network policy, and guest clock policy. A restored sandbox does not run a new foreground command; use msb exec for that.

Full restore validates host resources needed by the captured state. Missing resources block activation by default. --allow-missing-resources changes that result to warnings. Explicit resource mappings can use strict or relaxed external-mount handling.

References: crates/…/restore.rs• L23-55 crates/…/restore.rs• L57-139 crates/…/restore.rs• L145-209 crates/…/restore.rs• L215-285

Named volume flow

Named volumes hold data outside a sandbox's lifecycle. A volume can be directory-backed or disk-backed. Its data remains available after the sandboxes that use it stop or are removed.

The volume commands manage that independent data store:

  • msb volume create creates a directory volume by default or a disk volume with required capacity.
  • msb volumes or msb volume ls lists volumes and their kind and size.
  • msb volume inspect shows identity, storage details, and host path.
  • msb volume rm removes one or more volumes.

Sandbox creation can mount a named volume with -v NAME:GUEST_PATH or --mount-named. A missing volume can be created by a mount flow, but an existing volume with an incompatible kind or size is rejected. An owned mount creates private data whose lifetime follows the sandbox.

References: crates/…/volume.rs• L13-37 crates/…/volume.rs• L39-91 crates/…/volume.rs• L97-140 crates/…/volume.rs• L143-268 crates/…/common.rs• L193-224

Mount option flow

Sandbox creation accepts generic -v/--volume mounts and explicit directory, file, disk, named, or owned mounts. The source type selects a host bind, named volume, private volume, or disk mount. Common options control access and filesystem behavior.

The generic volume grammar is also used for string mounts in sandbox configuration files. Paired uid=N,gid=N settings present host-created files with a guest owner without changing host ownership. Quotas apply only to supported directory data.

References: crates/…/common.rs• L193-224 crates/…/common.rs• L790-932 crates/…/common.rs• L1942-2058 crates/…/sandbox_config.rs• L227-300 crates/…/sandbox_config.rs• L1368-1397

Change checklist

When these files or sections are changed, remember to consider these:

  • When sandbox target rules change, keep name and label selection aligned across start, stop, restart, remove, ping, and touch.
  • When the public sandbox surface changes, keep top-level commands, msb sandbox, msb sbx, and aliases mapped to the same contract.
  • When backend selection changes, check local-only commands and keep cloud-profile errors explicit.
  • When temporary-start behavior changes, check every operation that uses it, especially exec, copy, and SSH.
  • When creation options change, check both run and create, plus snapshot-backed launch and configuration-backed mounts.
  • When configuration precedence changes, review root and scoped files with explicit CLI overrides and positional image inputs.
  • When guest clock behavior changes, review create, run, pause, resume, full snapshot capture, inspect, fork, and restore together.
  • When restore controls or resource bindings change, keep full restore, disk-only restore, and fork rules aligned.
  • When snapshot metadata or head rules change, review checkpoint capture, archive import/export, launch selection, and restore as one contract.
  • When volume kinds or mount rules change, update standalone volume commands and named or owned mounts used during creation.
  • When storage diagnosis or repair changes, preserve the distinction between read-only diagnosis, stop blockers, consent, and disk recovery.
  • When managed-job behavior changes, keep detached exec, job wait, attach, signal, kill, EOF, inspect, and log selection aligned.
  • When log source or encoding behavior changes, keep human output and JSON Lines output consistent for sandbox and job logs.
  • When modify plan rules change, keep live, next-start, restart, unsupported, and convergence results aligned with saved configuration and inspect views.
  • When installed alias generation changes, keep persisted and temporary aliases aligned with run, preserve absolute config paths, and protect non-generated files.

Important failure modes

TriggerConsequenceGuard
A local-only command runs with a cloud backend selectedThe command stops before it acts on local sandbox state.Select a local backend for local operations.
Force stop, force restart, or force remove during pending writesUnflushed guest data can be lost.Prefer graceful stop or a suitable timeout.
msb run uses an existing name without --replaceNew image and creation settings are not applied.Use --replace or modify the existing sandbox.
Detached reuse has a command after --The command is ignored.Use msb exec NAME -- COMMAND.
msb modify requests a restart-backed change without an activation choiceNo changes are applied.Review the plan and choose --restart or --next-start.
msb modify --compact is combined with configuration changesArgument validation rejects the mixed operation.Run compaction as its own command.
A full snapshot restore lacks a required host resourceActivation is refused by default.Supply a valid mapping or use --allow-missing-resources when safe.
A full restore combines --cow-mem and --disk-onlyThe restore request is rejected.Select one state boundary.
A group launch has no selected head and no --checkpointSnapshot selection fails instead of guessing a member.Select a head or pass --checkpoint MEMBER.
A named mount differs from its existing volume kind or sizeSandbox creation fails instead of changing the volume silently.Inspect the volume and use compatible settings.
msb volume create --kind disk omits --sizeVolume creation is rejected.Supply capacity for disk volumes.
msb exec, msb copy, or msb ssh starts a stopped sandbox temporarilyThe sandbox stops again after the operation.Use msb start first when it must remain running.
msb copy sees a colon in a local path without an explicit local prefixThe endpoint is rejected as ambiguous.Use an absolute host path or prefix the local path with ./.
Copy-out encounters a sandbox symlink on WindowsThe copy is rejected.Copy the target as a regular file or use a Unix host.
msb exec --stream uses terminal inputThe command is rejected.Pipe input or use --no-stdin.
Detached msb exec targets a stopped or paused sandboxNo managed job is created.Start the sandbox first and target a running sandbox.
A job wait times outThe CLI stops waiting but the job continues.Inspect or attach to the job and terminate it separately if needed.
Storage usage cannot be measured for an inspected sandboxInspect reports storage as unavailable instead of returning a misleading value.Treat the reason as a measurement error and investigate it.
A log follower misses a rotationFollow mode stops before all new output is observed.Restart msb logs -f.
A sandbox is running or has related writers during repairStorage repair is blocked or unsafe to start.Stop the sandbox and follow the diagnosis and consent flow.
An installed alias targets a relative configuration pathLater calls can resolve the file from the wrong working directory.Let msb install record absolute configuration paths.

Key files

FileWhy to read it
crates/…/mod.rsShared rules for finding, connecting to, temporarily starting, and restoring ownership of sandboxes.
crates/…/common.rsBackend selection, creation options, configuration sources, mounts, target selection, and shared launch parsing.
crates/…/run.rsCreate, reuse, attach, detach, ephemeral-run, snapshot launch, and command execution behavior.
crates/…/create.rsIdle sandbox creation and background boot flow.
crates/…/snapshot_source.rsSnapshot group and archive selection shared by run and create.
crates/…/start.rs, stop.rs, restart.rs, remove.rsCore lifecycle transitions and bulk target behavior.
crates/…/pause.rs, branch.rsResident pause, resume, and independent child creation.
crates/…/list.rs, ps.rs, inspect.rs, modify.rsSandbox discovery, active state views, planned changes, convergence, and storage maintenance.
crates/…/exec.rs, copy.rs, ssh.rsCommand execution, file transfer, and remote sessions.
crates/…/jobs.rs, logs.rsManaged-job control and captured output for sandboxes and jobs.
crates/…/snapshot.rs, restore.rsSnapshot capture, lineage, archive transfer, restore modes, and destination bindings.
crates/…/volume.rsNamed volume creation, metadata views, and removal.
crates/…/install.rs, uninstall.rsPersistent and temporary executable aliases backed by sandbox runs.
crates/…/storage_doctor.rs, self_cmd/repair.rs, self_cmd/…/interactive.rsRead-only storage diagnosis, repair gates, consent, and recovery outcomes.