CLI Reference

CLI Reference

Every command, flag, and example for the flint CLI.

list no privileges

Print every detected drive with serial, size, letters, and physical path.

Synopsis

flint list [--json]

Options

FlagDescription
--jsonEmit output as NDJSON instead of a human-readable table
flash erases drive

Write an image raw to a drive.

Synopsis

flint flash --image <file> --drive <serial|letter|path> [--confirm <serial> | --yes] [--verify] [--quiet]

Options

FlagDescription
--imageImage file to write (required). Supports .iso, .img, .zip, .gz, .xz, .zst
--driveTarget drive by serial, letter, or physical path (required)
--confirm <serial>Confirm drive identity by serial
--yesSkip all confirmation prompts
--verifyVerify the drive after writing
--dry-runPreview the operation without writing
--resumeResume an interrupted write from the last confirmed sector
--copy-reportCopy the flash summary to clipboard after completion
--quietSuppress progress output

Example

flint flash --image C:\images\ubuntu.iso --drive E: --confirm 4C530001270509112345 --verify
flint flash --image C:\images\ubuntu.zip --drive E: --confirm 4C530001270509112345 --dry-run
verify

Read-only check against SHA-256 or bad-block scan.

Synopsis

flint verify --drive <serial|letter|path> [--sha256 <hex> --image <file>]

Options

FlagDescription
--driveTarget drive by serial, letter, or physical path (required)
--sha256 <hex>Expected SHA-256 hash
--image <file>Image file to compare against

Example

flint verify --drive E: --sha256 0a4b8c... --image C:\images\ubuntu.iso
wipe erases drive

Erase a drive with a chosen pattern.

Synopsis

flint wipe --drive <serial|letter|path> [--confirm <serial> | --yes] [--method zero|random|nist|dod] [--quiet]

Options

FlagDescription
--driveTarget drive by serial, letter, or physical path (required)
--confirm <serial>Confirm drive identity by serial
--yesSkip all confirmation prompts
--methodErase method: zero (default), random, nist, dod
--dry-runPreview the operation without writing
--quietSuppress progress output

Example

flint wipe --drive E: --confirm 4C530001270509112345 --method nist
flint wipe --drive E: --confirm 4C530001270509112345 --dry-run
backup

Copy a drive byte-for-byte into an image file.

Synopsis

flint backup --drive <serial|letter|path> --out <file> [--confirm <serial>] [--yes] [--quiet]

Options

FlagDescription
--driveTarget drive by serial, letter, or physical path (required)
--outOutput image file path (required)
--confirm <serial>Confirm drive identity by serial
--yesSkip all confirmation prompts
--quietSuppress progress output

Example

flint backup --drive E: --out C:\backup.img
clone

Copy one drive to another byte-for-byte.

Synopsis

flint clone --from <serial|letter|path> --to <serial|letter|path> [--confirm <serial of --to> | --yes] [--quiet]

Options

FlagDescription
--fromSource drive by serial, letter, or physical path (required)
--toTarget drive by serial, letter, or physical path (required)
--confirm <serial>Confirm target drive identity by serial
--yesSkip all confirmation prompts
--dry-runPreview the operation without writing
--quietSuppress progress output

Example

flint clone --from E: --to F: --confirm 4C530001270509112346
flint clone --from E: --to F: --confirm 4C530001270509112346 --dry-run
queue

Flash every image listed in a file.

Synopsis

flint queue --file <list.txt> --drive <serial|letter|path> [--confirm <serial> | --yes] [--quiet]

Options

FlagDescription
--fileText file listing image paths, one per line (required)
--driveTarget drive by serial, letter, or physical path (required)
--confirm <serial>Confirm drive identity by serial
--yesSkip all confirmation prompts
--quietSuppress progress output

Example

flint queue --file queue.txt --drive E: --confirm 4C530001270509112345
flash-all erases drive

Fleet mode — flash every queued image to every fitting drive.

Synopsis

flint flash-all --image <file> [--image <file> ...] [--confirm ARM | --yes] [--timeout <seconds>] [--skip-flashed] [--quiet]

Options

FlagDescription
--imageImage file to flash (repeatable, required at least once)
--confirm ARMConfirm fleet mode (must pass the literal ARM)
--yesSkip all confirmation prompts
--timeout <seconds>Abort if a drive does not appear within this time (default: 3600)
--skip-flashedSkip drives that already have the target image
--quietSuppress progress output

Example

flint flash-all --image C:\agent.iso --confirm ARM
doctor no privileges

Print a diagnostic report covering system info, permissions, and drive state.

Synopsis

flint doctor [--json]

Options

FlagDescription
--jsonEmit output as NDJSON
completions no privileges

Print a shell completion script to stdout.

Synopsis

flint completions [--shell bash|zsh|powershell]

Options

FlagDescription
--shellTarget shell: bash, zsh, or powershell (default: powershell)

Example

flint completions --shell bash >> ~/.bashrc
flint completions --shell zsh  >> ~/.zshrc
scan no privileges

Read every sector to find unreadable media.

Synopsis

flint scan --drive <serial|letter|path> [--retries <1-10>] [--quiet]

Options

FlagDescription
--driveTarget drive by serial, letter, or physical path (required)
--retriesNumber of read retries per bad sector (default: 3)
--verboseShow detailed per-sector bad-block information
--quietSuppress progress output

Example

flint scan --drive E: --retries 5 --verbose

Global Options

These flags work with every command.

FlagDescription
--jsonEmit NDJSON output instead of human-readable text
--quietSuppress non-essential output
--yesSkip all confirmation prompts
--confirm <serial>Confirm a drive's serial before destructive operations
--help / -hShow help for the current command
--versionPrint the Flint version and exit
--cliCompatibility flag — forces headless CLI mode when launched from the GUI

Exit Codes

The process exit code indicates the outcome of the command.

CodeMeaning
0Success
1General failure
2Cancelled by user
3Usage / bad arguments
4Elevation denied — administrator privileges required

NDJSON Output

When --json is passed, commands emit one JSON object per line. The type field identifies the payload.

TypeCommandsDescription
driveslistArray of detected drives with serial, size, letters, and physical path
progressflash, wipe, backup, clone, queue, flash-allStreaming progress updates with bytes written and elapsed time
resultall commandsFinal outcome — status, duration, and any error details
doctordoctorSystem diagnostic report (version, permissions, drive info)
scanscanSector-level scan results with bad-block positions and retry counts