flyctl machine run and update add --cachedrive-size
Introduced 2026-04-08 · score 0.90
HOW TO USE IT
When setting a cache drive size while running or updating a machine, pass `--cachedrive-size <size>` to `fly machine run` or `fly machine update`. Use a plain number in MB or a human-readable size; `0` disables the cache drive.
fly machine run <image> --cachedrive-size <size>fly machine update <machine_id> --cachedrive-size <size>WHY THIS HELPS
Set a cached drive size when running or updating a machine.
REQUIREMENTS AND LIMITATIONS
- Version: v0.4.32
- --cachedrive-size <size>: Cache drive size in MB; accepts a plain number in MB or a human-readable size such as `512mb` or `10gb`. Set to `0` to disable.
- <image> (required): Image argument for `run`.
- <machine_id>: Machine ID argument for `update`; the command definition allows it to be omitted.
- Prerequisite: The command requires a flyctl session.
FIRST-PARTY EVIDENCE
- https://github.com/superfly/flyctl/releases/tag/v0.4.32
- https://github.com/superfly/flyctl/blob/v0.4.32/internal/command/machine/run.go
- https://github.com/superfly/flyctl/blob/v0.4.32/internal/command/machine/update.go
Check the installed version and the source before using it. Entry JSON