4.5. Basic RHEL image builder command-line commands
The RHEL image builder command-line interface offers these basic commands for the image-builder.
- List all available images
# image-builder list- Filter images by name
# image-builder list-images --filter "rhel"- Filter by distribution and architecture
# image-builder list-images --filter "distro:rhel-10 arch:s390x"- Change output format
# image-builder list-images --filter "distro:rhel-10" --format=json | jq# image-builder list-images --filter "distro:rhel-10" --format=shell- Building images
# image-builder build <image-type><image-type> is the image type supported for RHEL image builder, such as
qcow2,wsl, between others.- Specify a distribution
# image-builder build <image-type> --distro <distro>- Show the progress of the image creation and detailed steps
# image-builder build <image-type> --distro <distro> --with-buildlog- Cross-architecture build
# image-builder build <image-type> --arch=riscv64- Add a custom repository to the build
# image-builder build <image-type> --add-repo=<file:///path/to/my/repo>