Utility to create and manage disk images. More information: https://keith.github.io/xcode-man-pages/hdiutil.1.html.
hdiutil attach {{path/to/image_file}}
hdiutil detach /Volumes/{{volume_file}}
hdiutil info
hdiutil makehybrid -o {{path/to/output_file}} {{path/to/directory}}