/sbin/fsck_apfs
The fsck_apfs utility verifies and repairs APFS containers and volumes. It checks the specified APFS containers and volumes and tries to repair all detected inconsistencies.