Write a specific image to a specific block device

rpi-imager

rpi-imager --cli {{path/to/image.zip}} {{/dev/sdX}}

click the source code to copy