Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/mikronita/mikrom/llms.txt

Use this file to discover all available pages before exploring further.

The mikrom volume group manages persistent block storage that survives across microVM restarts and redeployments. Volumes are attached directly to application VMs at a specified mount path and support three access modes: ReadWriteOnce (exclusive to one instance), ReadWriteMany (shared across instances), and ReadOnlyMany (read-shared across instances). Snapshots let you capture and restore volume state at any point in time.

mikrom volume list

List all persistent volumes in the current project, optionally filtered to a specific application.
mikrom volume list [--app <name>]
--app / -a
string
Filter the listing to volumes attached to, or associated with, this application name.
Example — list all volumes
mikrom volume list
Example — filter by app
mikrom volume list --app my-api

mikrom volume create

Create a new persistent volume with a display name and a size in MiB. The volume is created unattached and must be explicitly attached to an application before it is accessible inside a VM.
mikrom volume create --name <name> --size <MiB>
--name / -n
string
required
Human-readable display name for the volume (e.g. uploads-prod).
--size / -s
number
required
Requested volume size, expressed in MiB (mebibytes).
The --size flag is in MiB. To create a 20 GiB volume, pass --size 20480. There is no default — you must specify the size explicitly.
Example — create a 10 GiB volume
mikrom volume create --name uploads-prod --size 10240

mikrom volume attach

Attach an existing volume to an application at a specified path inside the VM. You can control the access mode to allow exclusive, shared-write, or read-only access.
mikrom volume attach --app <name> --volume-id <id> --mount <path> [--mode 0|1|2]
--app / -a
string
required
Name of the application to attach the volume to.
--volume-id
string
required
ID of the volume to attach. This flag has no short form.
--mount / -m
string
required
Absolute path inside the VM where the volume will be mounted (e.g. /data).
--mode / -A
number
default:"0"
Access mode for the volume. Short flag is -A (capital A).
  • 0RWO ReadWriteOnce: mounted read-write by a single instance (default).
  • 1RWX ReadWriteMany: mounted read-write by multiple instances simultaneously.
  • 2ROX ReadOnlyMany: mounted read-only by multiple instances simultaneously.
Example — attach with default RWO mode
mikrom volume attach --app my-api --volume-id vol-abc123 --mount /data
Example — attach with shared write access
mikrom volume attach --app my-api --volume-id vol-abc123 --mount /shared --mode 1

mikrom volume detach

Detach a volume from an application. The volume’s data is preserved and the volume can be re-attached to the same or a different application afterwards.
mikrom volume detach --app <name> --volume-id <id>
--app / -a
string
required
Name of the application to detach the volume from.
--volume-id
string
required
ID of the volume to detach. This flag has no short form.
Example
mikrom volume detach --app my-api --volume-id vol-abc123

mikrom volume snapshot

Create a named snapshot of a volume’s current state. Snapshots are point-in-time copies that can be used to restore the volume later.
mikrom volume snapshot --volume-id <id> --name <name>
--volume-id
string
required
ID of the volume to snapshot. This flag has no short form.
--name / -n
string
required
Descriptive name for the snapshot (e.g. before-schema-change).
Example
mikrom volume snapshot --volume-id vol-abc123 --name before-schema-change

mikrom volume restore

Restore a volume to the state captured in a named snapshot. All data written after the snapshot was taken will be lost.
mikrom volume restore --volume-id <id> --snapshot <name>
--volume-id
string
required
ID of the volume to restore. This flag has no short form.
--snapshot / -s
string
required
Name of the snapshot to restore from.
Restoring a volume is irreversible. All data written to the volume after the selected snapshot was created will be permanently overwritten. Take a new snapshot first if you need to preserve the current state.
Example
mikrom volume restore --volume-id vol-abc123 --snapshot before-schema-change

mikrom volume snapshots list

List all snapshots for a specific volume.
mikrom volume snapshots list --volume-id <id>
--volume-id
string
required
ID of the volume whose snapshots you want to list. This flag has no short form.
Example
mikrom volume snapshots list --volume-id vol-abc123

mikrom volume snapshots delete

Delete a volume snapshot by its snapshot ID. Prompts for confirmation unless --yes is passed.
mikrom volume snapshots delete --snapshot-id <id> [--yes]
--snapshot-id
string
required
ID of the snapshot to delete. This flag has no short form.
--yes / -y
boolean
default:"false"
Skip the interactive confirmation prompt.
Deleting a snapshot is irreversible. Once removed, you cannot restore the volume to the state that snapshot represented.
Example
mikrom volume snapshots delete --snapshot-id snap-xyz789 --yes

mikrom volume delete

Permanently delete a volume and all data stored in it. Prompts for confirmation unless --yes is provided.
mikrom volume delete --volume-id <id> [--yes]
--volume-id
string
required
ID of the volume to delete. This flag has no short form.
--yes / -y
boolean
default:"false"
Skip the interactive confirmation prompt.
Deleting a volume is irreversible. All data stored in the volume — including any snapshots associated with it — will be permanently destroyed. Detach the volume from any application before deleting it.
Example
mikrom volume delete --volume-id vol-abc123 --yes

Build docs developers (and LLMs) love