php bin/console secrets:generate-keys

Generate new encryption keys

Usage

secrets:generate-keys [-l|--local] [-r|--rotate]

Options

-l,   --local    Update the local vault. 
-r,   --rotate   Re-encrypt existing secrets with the newly generated keys. 

Help

The secrets:generate-keys command generates a new encryption key.

    bin/console secrets:generate-keys

If encryption keys already exist, the command must be called with
the --rotate option in order to override those keys and re-encrypt
existing secrets.

    bin/console secrets:generate-keys --rotate