Skip to content

Commit

Permalink
drop the --exit option
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jul 22, 2024
1 parent 9710329 commit 8e1d67b
Showing 1 changed file with 1 addition and 12 deletions.
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

0 comments on commit 8e1d67b

Please sign in to comment.