Launching TestFlows Machine: self-service deterministic simulation testing environment Read the post

Disks

Command Does
machine disks List and manage disks
machine preload Fetch a run or a disk onto this session
machine fs List, copy or print files of a run’s disk
machine sync Publish a run to shared storage
machine offload List or drop this session’s local copies
machine storage Show and manage storage

machine disks

List and manage disks. See Disks.

A disk is the filesystem image that a run is created from. Build one from a static binary, a Docker image or a Compose project.

The listing shows the newest 25. Use --limit for a different page size.

1
2
3
machine disks [-h] [-q] [--no-trunc] [--deleted] [--label name=value] [--since date|age]
[--limit n] [--offset n] [-w]
command ...
Option Does
-q, --quiet Only show ids
--no-trunc Full disk id
--deleted Show deleted disks
--label name=value Filter by a label (repeatable; matches all)
--since date|age Since a date such as 2026-06-01, or an age such as 7d, 24h or 30m
--limit n Show at most n disks (default: 25)
--offset n Skip the first n disks
-w, --watch Watch for changes

Examples:

1
2
3
4
machine disks                              list disks
machine disks build --binary ./prog hello build a disk from a program
machine disks show hello details of hello
machine disks transfers uploads in progress

Refuses, and the way past:

1
a disk with runs  machine disks delete hello -f -y

See also:

machine disks list

List disks. See Disks.

The listing shows the newest 25. Use --limit for a different page size.

1
2
machine disks list [-h] [-q] [--no-trunc] [--deleted] [--label name=value]
[--since date|age] [--limit n] [--offset n] [-w]
Option Does
-q, --quiet Only show ids
--no-trunc Full disk id
--deleted Show deleted disks
--label name=value Filter by a label (repeatable; matches all)
--since date|age Since a date such as 2026-06-01, or an age such as 7d, 24h or 30m
--limit n Show at most n disks (default: 25)
--offset n Skip the first n disks
-w, --watch Watch for changes

Examples:

1
2
3
machine disks list                 list disks
machine disks list --label team=a disks with a label
machine disks list -w watch the list

See also:

machine disks build

Build a disk from a binary, image or Compose project. See Disks.

Exactly one source is required. --binary wraps a static executable in an image built around it. --from names a public image that the build pulls. No Docker is needed for --from.

--image takes a Docker image as a save tar or a name in the local Docker. --compose takes a project directory and the images its services name.

A binary or an image runs as one container. Use --entrypoint to set the executable. Pass arguments after --.

Use --env to set a variable in the environment of the container. The disk holds each --env value as written.

A project runs every service in it. It takes no --entrypoint, no --env and no arguments after --.

With --from or --binary, --add puts a file or a directory in the image, as one more layer. Without a destination the path lands in the working directory of the image, under its own name. Write path:dest to name another place. A dest ending in / is a directory.

The name defaults to what the source is called. The size defaults to the size of the images once loaded, plus 1 GB, rounded up to a whole GB. Use --dry-run to see those numbers without building anything.

The build writes the images into the Docker store of the disk. A machine created from the disk has every image present and loads nothing. Use --load-at-boot to keep them on the disk as save tars. Docker then loads them each time a machine starts from the disk.

A guest that runs docker save or docker push on one of the images needs the save tars. Such a disk holds each image twice and is sized for both.

1
2
3
4
machine disks build [-h] (--binary path | --image ref | --from ref | --compose dir)
[--size size] [--dry-run] [--load-at-boot] [--entrypoint path]
[--add path[:dest]] [--env name=value] [--label name=value]
[name] [-- args ...]
Argument Does
[name] Disk name
[-- args ...] Arguments after -- become the service’s command
Option Does
--binary path Static x86_64 executable to wrap
--image ref Docker image, a save tar or a name
--from ref Public image, pulled by the build
--compose dir Compose project directory
--size size Disk size, MB or with a K/M/G/T suffix (default: the loaded images plus 1 GB, rounded up to a GB)
--dry-run Report what the disk would hold and build nothing
--load-at-boot Keep the images as tars on the disk and load them each time a machine starts from the disk
--entrypoint path Executable the service runs
--add path[:dest] File or directory to put in the image, repeatable; dest defaults to the image’s working directory
--env name=value Environment variable the service runs with, repeatable
--label name=value Attach a label, repeatable; an empty value removes one the name carried

Examples:

1
2
3
4
machine disks build --binary ./prog hello            from a binary
machine disks build --image app:1 hello from a Docker image
machine disks build --compose ./app app from a Compose project
machine disks build --binary ./prog hello --dry-run show name and size

See also:

machine disks show

Show disk details. See Disks.

1
machine disks show [-h] name
Argument Does
name Disk name

Examples:

1
machine disks show hello  details of hello

See also:

machine disks transfers

Show disk transfers. See Disks.

The listing shows the active transfers by default. Use --since to include history. Use --since with --active for transfers in flight that started in that window.

1
machine disks transfers [-h] [--active] [--since date|age] [-w]
Option Does
--active Only in-flight transfers
--since date|age Since a date such as 2026-06-01, or an age such as 7d, 24h or 30m
-w, --watch Watch for changes

Examples:

1
2
machine disks transfers           uploads and downloads
machine disks transfers --active those in progress

See also:

machine disks delete

Delete disks. See Disks.

Deletion is permanent. The name is free at once. The bytes count against the storage quota until a prune removes them.

A disk that a run was created from is refused. Use --force to delete it anyway. Those runs stay and can no longer start.

1
machine disks delete [-h] [-y] [-f] name [name ...]
Argument Does
name [name ...] Disk names
Option Does
-y, --yes Skip the confirmation prompt
-f, --force Delete a disk that runs were created from

Examples:

1
2
machine disks delete hello -y     delete hello
machine disks delete hello -f -y delete it though runs boot it

See also:

machine disks rename

Rename a disk. See Disks.

1
machine disks rename [-h] name new-name
Argument Does
name Current disk name
new-name New disk name

Examples:

1
machine disks rename hello hello2  rename hello to hello2

See also:

machine disks verify

Check a stored disk against its id. See Disks.

The command reads the disk back out of shared storage. It computes the id, which is what the disk is stored under. A disk that reads as stored is verified. A disk that does not is reported as damaged.

The check is a storage operation and takes about as long as reading the disk. It keeps running if the command is interrupted. Run machine storage ops to list it. One check runs at a time for an account.

The command waits for the result. Use --no-wait to return once the request is accepted.

1
machine disks verify [-h] [--no-wait] name
Argument Does
name Disk name
Option Does
--no-wait Return without waiting

Examples:

1
machine disks verify hello  check hello against its id

See also:

machine disks cancel

Cancel a transfer in progress. See Disks.

1
machine disks cancel [-h] name
Argument Does
name Disk name

Examples:

1
machine disks cancel hello  cancel the transfer of hello

See also:

machine preload

Fetch a run or a disk onto this session. See Stopping and starting.

The operand is any run or disk of the account. A run fetched here starts later without a fetch. A disk fetched here is ready before a run is created from it.

Use -a to fetch every run that this session’s runs branched from, and their disks. A copy already here is skipped. A session is required.

1
machine preload [-h] [-a] command ...
Option Does
-a, --all Everything this session’s runs need

Examples:

1
2
machine preload run run1    fetch run1 onto the session
machine preload disk hello fetch the disk hello onto it

See also:

machine preload run

Preload a run into a session. See Stopping and starting.

The command fetches the run from shared storage onto the session. The run is there before it is needed. A run already there is skipped. The disk of the run is fetched with it.

1
machine preload run [-h] [-a] [run]
Argument Does
[run] Run name, required without -a
Option Does
-a, --all Every run this session’s runs branched from

Examples:

1
2
machine preload run run1  fetch run1 onto this session
machine preload run -a fetch every run this session needs

See also:

machine preload disk

Preload a disk into a session. See Stopping and starting.

The command fetches the account disk onto the session. The disk is there before a start. A disk already there is skipped.

1
machine preload disk [-h] [-a] [disk]
Argument Does
[disk] Disk name or id
Option Does
-a, --all Every disk this session’s runs need

Examples:

1
2
machine preload disk hello  fetch the disk hello
machine preload disk -a fetch every disk this session needs

See also:

machine fs

List, copy or print files of a run’s disk.

The command reads the filesystem on the disk as a checkpoint saved it. It never reads the live machine. It needs no program in the machine and does not change how the machine executes.

Every read names its checkpoint with --at. A point that is not a checkpoint is refused, and the refusal names the checkpoint before it. The point now is the checkpoint the run stands at, until the machine runs again.

Data the machine has not synced to its disk is not visible. A file a program wrote a moment before the checkpoint can be missing, short or empty.

To read the files as they are, execute sync in the machine with exec. Then take a checkpoint and read with --at now. Use exec run with cat to read a file of the live machine.

A run created with --fs-sync writes every change of a file to the disk as it is made. A run created with --fs-dirsync does so for every change of a directory. Both are options of create and are off by default.

1
machine fs [-h] command ...

Examples:

1
2
3
4
5
machine fs ls run1 /etc --at ^cp1             list a directory at cp1
machine fs cat run1 /etc/hostname --at ^cp1 print a file
machine fs cp run1 /etc/hostname . --at ^cp1 copy a file out
machine fs ls run1 / --at '#300' at the checkpoint at entry 300
machine fs ls run1 / --at now at the checkpoint just taken

Refuses, and the way past:

1
2
a read with no checkpoint named   machine checkpoints run1
a point with no checkpoint at it machine checkpoint run1

See also:

machine fs ls

List files on a run’s disk at a checkpoint.

The files are read from the disk as a checkpoint saved it, not from the live machine. Use --at to name the checkpoint. Data the machine has not synced to its disk is not visible.

1
machine fs ls [-h] [--at point] [-l] [-a] run [path]
Argument Does
run Run name
[path] Path (default: /)
Option Does
--at point Required. The checkpoint to read the disk at: ^name, ‘#entry’ of a checkpoint, or now
-l Long format (mode, size, mtime, name)
-a, --all Include the current and parent directory entries

Examples:

1
2
machine fs ls run1 /etc --at ^cp1        list a directory at cp1
machine fs ls -l -a run1 /etc --at ^cp1 long form

Prints:

1
2
text  checkpoint <entry> path <path>, then a name a line
json checkpoint path entries

See also:

machine fs cp

Copy a file or directory from a run’s disk at a checkpoint.

The files are read from the disk as a checkpoint saved it, not from the live machine. Use --at to name the checkpoint. Data the machine has not synced to its disk is not visible. Use -r to copy a directory.

1
machine fs cp [-h] [--at point] [-r] run path [dest]
Argument Does
run Run name
path Path to copy
[dest] Local destination file or directory (default: .)
Option Does
--at point Required. The checkpoint to read the disk at: ^name, ‘#entry’ of a checkpoint, or now
-r, --recursive Copy directories recursively

Examples:

1
2
machine fs cp run1 /etc/hostname . --at ^cp1  copy a file out
machine fs cp -r run1 /etc ./etc --at ^cp1 copy a directory out

See also:

machine fs cat

Print a file from a run’s disk at a checkpoint.

The files are read from the disk as a checkpoint saved it, not from the live machine. Use --at to name the checkpoint. Data the machine has not synced to its disk is not visible.

1
machine fs cat [-h] [--at point] run path
Argument Does
run Run name
path File path
Option Does
--at point Required. The checkpoint to read the disk at: ^name, ‘#entry’ of a checkpoint, or now

Examples:

1
2
machine fs cat run1 /etc/hostname --at ^cp1    print a file
machine fs cat run1 /etc/hostname --at '#300' at entry 300

See also:

machine sync

Publish a run to shared storage. See Stopping and starting.

Any session can then start the run. The command runs in the session that holds the run.

1
machine sync [-h] run
Argument Does
run Run name

Examples:

1
machine sync run1  publish run1 to shared storage

See also:

machine offload

List or drop this session’s local copies. See Stopping and starting.

Offload alone lists the copies this session can drop. It counts the copies in use.

The run and disk subcommands drop one kind. Use -a to drop every run and disk not in use. The copy in shared storage stays.

Start or preload brings a run back. The next start fetches a disk again. A session is required.

1
machine offload [-h] [--runs] [--disks] [-a] command ...
Option Does
--runs Only session run folders
--disks Only session disk files
-a, --all Every run and disk not in use

Examples:

1
2
3
machine offload             list the copies that can be dropped
machine offload run run1 drop the session's copy of run1
machine offload disk hello drop its copy of the disk hello

See also:

machine offload list

List the copies that can be dropped. See Stopping and starting.

The listing shows the copies on this session that are not in use. The rest are counted below the table. Use --runs or --disks to show one kind. Omit both, or pass both, to show both.

1
machine offload list [-h] [--runs] [--disks]
Option Does
--runs Only session run folders
--disks Only session disk files

Examples:

1
2
machine offload list         copies that can be dropped
machine offload list --runs runs only

See also:

machine offload run

Offload a run from a session. See Stopping and starting.

The command drops the session’s copy of the run and frees its storage. The run itself stays in shared storage. Stop does not drop the copy.

Start or preload brings the run back. The command does not drop the disk of the run.

1
machine offload run [-h] [-a] [run]
Argument Does
[run] Run name
Option Does
-a, --all Every run not in use

Examples:

1
2
machine offload run run1  drop the copy of run1
machine offload run -a drop every run not in use

See also:

machine offload disk

Offload a disk from a session. See Stopping and starting.

The command drops the session’s copy of the disk. The account disk stays. A disk in use by a live machine is refused. The next start fetches the disk again.

1
machine offload disk [-h] [-a] [disk]
Argument Does
[disk] Disk name or id
Option Does
-a, --all Every disk not in use

Examples:

1
2
machine offload disk hello  drop the copy of the disk hello
machine offload disk -a drop every disk not in use

See also:

machine storage

Show and manage storage. See Account and billing.

Storage holds the runs and disks of the account. The subcommands report its use, list its operations, reclaim space and read every object back.

1
machine storage [-h] [--refresh] command ...
Option Does
--refresh Measure again instead of using the last measurement

Examples:

1
2
3
4
machine storage show   storage the account uses
machine storage ops storage operations
machine storage prune reclaim space held by deleted runs
machine storage check check every object can be read

See also:

machine storage show

Show the storage the account uses. See Account and billing.

1
machine storage show [-h] [--refresh]
Option Does
--refresh Measure again instead of using the last measurement

Examples:

1
2
machine storage show            storage the account uses
machine storage show --refresh measure again

See also:

machine storage ops

List operations on the account’s storage.

The listing shows the newest 25 operations in every state. Use --limit for a different page size. Use --state to show some states.

STATUS says why an operation failed. It also says how many objects a running check has read.

These operations act on the account’s storage, not on a run. The ops command does not list them. The command needs no session.

1
2
machine storage ops [-h] [--op-id id] [--state [^]state] [--type [^]type]
[--since date|age] [--until date|age] [--limit n] [--offset n] [-w]
Option Does
--op-id id Show one operation, by its id (ignores --state and --type)
--state [^]state Filter by state: pending, running, done, failed (default: all; repeat = OR; ^ excludes)
--type [^]type Filter by type: measure, prune, verify, check (default: all; repeat = OR; ^ excludes)
--since date|age Since a date such as 2026-06-01, or an age such as 7d, 24h or 30m
--until date|age Until a date such as 2026-06-01, or an age such as 7d, 24h or 30m
--limit n Show at most n operations (default: 25)
--offset n Skip the first n operations
-w, --watch Watch for changes

Examples:

1
2
machine storage ops                  the newest operations
machine storage ops --state running those still running

See also:

machine storage prune

Reclaim space held by deleted runs and disks. See Account and billing.

The command does nothing while unused data is below 5% of storage.

1
machine storage prune [-h] [-y] [--status]
Option Does
-y, --yes Do not ask for confirmation
--status Show the current or last prune and exit

Examples:

1
2
machine storage prune -y        reclaim space without asking
machine storage prune --status the current or last prune

See also:

machine storage check

Check that every stored object can be read. See Account and billing.

The command reads everything in the account’s storage back and reports what could not be read.

Nothing is written. The check can run while sessions and a prune run. An object deleted while the check runs is counted apart, not as unreadable.

The command waits for the check. It shows the objects and bytes read as it goes. Use --no-wait to return once the request is accepted.

The check is an operation. It goes on if the command is interrupted. Run machine storage ops to list it.

The command fails when an object could not be read. It names each one with the id of the failed request.

1
machine storage check [-h] [--status] [--no-wait]
Option Does
--status Show the current or last check and exit
--no-wait Return once the check is started

Examples:

1
2
machine storage check           read every stored object
machine storage check --status the current or last check

See also: