Is it possible to import one single yml configuration file by specifying its path?
Or a group of yml files contained in a specific module?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
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):
Note - Always take a backup.