The diskutil command contains many additional options that can allow you to work directly with any connected storage device, letting you mount, unmount, format, partition, and work with APFS containers and volumes. Attempting to unravel all of the capabilities of diskutil is beyond the scope of this article, however, you can learn more by entering the following at the Terminal prompt:
We highly recommend that if you intend to use diskutil commands to format, erase, repair, partition, or manipulate a storage device in any way, beyond just viewing a list of devices, or mounting a wayward volume, that you have a current backup of all storage devices as well as a good understanding of the diskutil options you are using. A wayward diskutil command line entry can result in a loss of data that may not be easy to recover from.
Xsan Command Line Options In High Sierra