To use the importer, organize your configuration files in a specific directory structure within your Magento root.
Files in the base folder are always imported. Environment-specific files (e.g., dev, production, staging) are imported based on the environment argument provided to the CLI. If a configuration key exists in both base and the environment folder, the environment value overwrites the base value.
Example Structure:
magento_root
├── config
│ └── store
│ ├── base
│ │ └── general.yaml
│ ├── dev
│ │ └── admin.yaml
│ └── production
│ └── web.yaml
Usage Example:
To import settings for the dev/therouv environment from the config/store folder:
php bin/magento config:data:import config/store dev/therouv