Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions configuration/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,22 +271,11 @@ manually store this file somewhere and deploy it. There are 2 ways to do that:

.. code-block:: terminal

$ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force --exit
$ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force

This will write all the decrypted secrets into the ``.env.prod.local`` file.
After doing this, the decryption key does *not* need to remain on the server(s).

Note the usage of the ``--exit`` option: this ensures that all secrets are
successfully decrypted. If any error occurs during the decryption process,
the command will return a non-zero exit code, indicating a failure.

If you wish to continue regardless of errors occurring during decryption,
you may omit this option.

.. versionadded:: 7.2

The ``--exit`` option was introduced in Symfony 7.2.

Rotating Secrets
----------------

Expand Down
Loading