If we run the config:import without specifying the --env parameter, development is used as a fallback. We should at least ask for a confirmation (y/n) before proceeding, maybe it's even better to not allow to call the command without this parameter.
user@production-server:~$ php /var/www/shop/current/vendor/bin/oxid config:import
[warning] loading configuration for 'development' environment, should we proceed? [y/n]
n
aborting
user@production-server:~$ php /var/www/shop/current/vendor/bin/oxid config:import
[warning] no environment given, please specify it like so
config:import --env=<NAME-OF-THE-ENVIRONMENT>
aborting
If we run the
config:import
without specifying the--env
parameter,development
is used as a fallback. We should at least ask for a confirmation(y/n)
before proceeding, maybe it's even better to not allow to call the command without this parameter.