How to make an APFS disk image on the command line
hdiutil create -fs APFS -size XGB filename.sparseimage