I erased my 2012 MacBook Pro’s drive (it was on Catalina 10.15.7), and now it only shows the Internet Recovery screen (spinning globe → Choose Network).
I tried creating a bootable installer while running macOS Sequoia 15.1.1, but I downloaded a Sierra 10.12 .dmg that turned into a .pkg instead of an Install macOS app. When using the createinstallmedia command in Terminal, it failed because the installer app wasn’t properly available in Applications.
You can create a bootable drive for macOS with Terminal, like these commands:
Catalina: sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Mojave: sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
High Sierra: sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Any easy and safe way? iBoysoft DiskGeeker for Mac is a good tool, you can directly download macOS DMG files on your internal or external drive.