Is it possible to import one single configuration file by specifying its path, or a group of Yaml files contained in a specific module?
You can use
$ drush cim --partial --source=only-few-configs/
Your help says:
$ drush cim --help Import config from a config directory. Examples: drush config-import --partial Import configuration; do not remove missing configuration. Arguments: label A config directory label (i.e. a key in $config_directories array in settings.php). Defaults to 'sync' Options: --partial Allows for partial config imports from the source directory. Only updates and new configs will be processed with this flag (missing configs will not be deleted). --preview=<list> Format for displaying proposed changes. Recognized values: list, diff. Defaults to list. --source An arbitrary directory that holds the configuration files. An alternative to label argument Aliases: cim
You can import one configuration by running the following command:
If you are trying to run multiple import you can create a chain for that.
Command Documentation - config:import:single
In case you don't have Drush or Drupal console installed, please use the following steps (executed successfully in D 8.0.1):
- Go to Administration->Configuration->Configuration Synchronization. Configuration can be exported for a single item or for entire site. I did for a single user.mail.yml file. Export the required configuration.
- Modify the changes to the exported configuration.
- Import the modified configuration
- Once import is successful, ensure that you clear the existing data from config and cache_config tables(Extract a dump of the database and search for the configuration keywords. That way you will know the tables where the entry is present.)
Note - Always take a backup.