Support for different CLI configuration files #6506

Open
opened 2026-01-22 15:34:13 +01:00 by admin · 0 comments
Owner

Originally created by @filips123 on GitHub (Jul 26, 2020).

It is currently only possible to use cli-config.php or config/cli-config.php. I think this name is not really good name, because it doesn't tell you for which CLI is that config, so it can become messy if you have multiple config files for multiple things.

I think this should be resolved in two steps (preferably both, if possible):

  1. Add support to use doctrine.php or similar by default (along with current cli-config.php for compatibility).
  2. Add support to specify custom config file, for example with paramater when calling CLI (like --config custom-config.php).
Originally created by @filips123 on GitHub (Jul 26, 2020). It is currently only possible to use `cli-config.php` or `config/cli-config.php`. I think this name is not really good name, because it doesn't tell you for which CLI is that config, so it can become messy if you have multiple config files for multiple things. I think this should be resolved in two steps (preferably both, if possible): 1. Add support to use `doctrine.php` or similar by default (along with current `cli-config.php` for compatibility). 2. Add support to specify custom config file, for example with paramater when calling CLI (like `--config custom-config.php`).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6506