Tente o seguinte:
diskutil partitionDisk /dev/disk2 1 GPT APFS TEST R
diskutil list
deve dar:
/dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *480.1 GB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_APFS 479.9 GB disk2s2 /dev/disk2s2s1 (external, virtual): #: TYPE NAME SIZE IDENTIFIER 0: APFS Volume TEST +24.6 KB disk2s2s1