File tree 1 file changed +10
-1
lines changed 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,20 @@ manually store this file somewhere and deploy it. There are 2 ways to do that:
271
271
272
272
.. code-block :: terminal
273
273
274
- $ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force
274
+ $ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force --exit
275
275
276
276
This will write all the decrypted secrets into the ``.env.prod.local `` file.
277
277
After doing this, the decryption key does *not * need to remain on the server(s).
278
278
279
+ Note the usage of the ``--exit `` option: this forces all secrets to be successfully
280
+ decrypted, otherwise a non-zero exit code is returned.
281
+
282
+ If you wish to continue regardless of errors occurring during decryption, you may omit this option.
283
+
284
+ .. versionadded :: 7.2
285
+
286
+ The ``--exit `` option was introduced in Symfony 7.2.
287
+
279
288
Rotating Secrets
280
289
----------------
281
290
You can’t perform that action at this time.
0 commit comments