cryptsetup luksFormat

Initialize a LUKS partition and the initial key slot (0) with a passphrase or keyfile. Note: this operation overwrites all data on the partition. More information: https://manned.org/cryptsetup-luksFormat.

cryptsetup luksFormat {{/dev/sdXY}}

cryptsetup luksFormat {{/dev/sdXY}} {{path/to/keyfile}}

cryptsetup luksFormat --label {{label}} {{/dev/sdXY}}