If you’re comfortable with node.js, you can modify this script to generate the hex files offline. It’s how the hex images in the docs website tool are generated.
Alternatively you can use the Segger tools to flash the .bin file directly to the correct address. This makes sense if you only want to flash the user binary.