rpi-imager
Write OS images to SD cards and USB drives for Raspberry Pi
TLDR
SYNOPSIS
rpi-imager [--cli] [options] [image] [device]
DESCRIPTION
rpi-imager is the official Raspberry Pi imaging tool for writing operating-system images onto SD cards and USB drives. The GUI handles image discovery, download, and first-boot customization (hostname, SSH, Wi-Fi, locale, timezone, user account). The --cli mode is a scripting interface: it writes a single image to a single device and verifies the result. Customization options such as hostname and Wi-Fi are only exposed in the GUI — they are not CLI flags.The tool downloads and caches official and third-party images from a JSON list, verifies the download by checksum, and re-reads the device after writing to detect silently failing SD cards.
PARAMETERS
--cli
Command-line mode — no GUI is shown.--debug
Verbose debug output; on Windows a console window is attached.--version
Print the application version and exit.--repo URL
Load the OS list from a custom URL or local file path.--qm FILE
Load a custom Qt `.qm` translation file.--refresh-interval MIN
Seconds between OS-list refreshes (minimum 1440 minutes when non-zero).--refresh-jitter MIN
Jitter added to the refresh interval (minimum 180 minutes when non-zero).--disable-telemetry, --enable-telemetry
Turn off or restore telemetry. The setting is persisted.--disable-verify
CLI only. Skip the post-write re-read verification pass.--sha256 HASH
CLI only. Verify the written data matches the given SHA-256.--quiet
CLI only. Suppress progress output.--help
Display usage information.
CAVEATS
Writing requires root/admin privileges on the target device; selecting the wrong device destroys data — verify the path twice. Preseeding SSH/Wi-Fi from a script requires the GUI (which writes a cloud-init-style `firstrun` payload) or a separate tool such as `systemd-firstboot`.
HISTORY
rpi-imager was released by Raspberry Pi Ltd in March 2020 to replace third-party imaging tools. The --cli mode, SHA-256 verification, and telemetry controls were added in subsequent releases.
SEE ALSO
dd(1), balena-etcher(1), gnome-disks(1)
