How to use an Apple ID when using hdesetup?
fdesetup doesn't support that feature. You can use other options such as creating or rotating a personal and/or institutional recovery keys but you can't store your recovery key with Apple using the command line.