config:env:create
Create app/etc/env.php
interactively.
This command helps you create the env.php
file required by Magento 2. It guides you through the process interactively, allowing you to set up all necessary configuration values. If the file already exists, it can update existing values as needed.
Tip: To update a single value, use the
config:env:set
command instead.
Usage
n98-magerun2.phar config:env:create
Features
- Interactive creation of
app/etc/env.php
- Can update existing
env.php
files - Supports all required Magento 2 environment settings
Example
n98-magerun2.phar config:env:create
You will be prompted for the necessary configuration values (database, crypt key, etc.).
See also
config:env:set
: Update a single value inenv.php
config:env:delete
: Remove a value fromenv.php