Short tips&hints additional.

To check and download available macos x distribution you can use softwareupdate command

list available images:

softwareupdate --list-full-installers

download selected image:

softwareupdate --fetch-full-installer --full-installer-version 15.0.1

To make bootable flash disk:

/Applications/Install\ macOS\ xxxxx.app/Contents/Resources/createinstallmedia --volume /Volumes/YYYY 

where xxxxx - macos system code name (i.e. Sequoia / Sonoma / Ventura / etc) and YYYYY - you flash drive current name

You must have root privileges to run this command.