The Laravel Artisan Cheatsheet now has an API. Learn more.


Decrypt an environment file


  • key - The encryption key Optional
  • cipher - The encryption cipher Optional
  • env - The environment to be decrypted Optional
  • force - Overwrite the existing environment file Optional
  • path - Path to write the decrypted file Optional
  • filename - Filename of the decrypted file Optional
php artisan env:decrypt [--key [KEY]] [--cipher [CIPHER]] [--env [ENV]] [--force] [--path [PATH]] [--filename [FILENAME]]