macOS / binaries /

newfs_apfs

/sbin/newfs_apfs
Constructs a new APFS volume

The newfs_apfs command creates a new APFS container on the device and/or adds a new APFS volume to a container. The first, more traditional, form of newfs_apfs formats the given special as a container with a single volume inside it. The second form creates a container only, with no volumes. The third form is used to non-destructively add additional volumes inside an existing container. The fourth form reformats an existing volume by effectively deleting and re-creating it.

source: man