1

To be more specific than the title, I want to know what drush cim exactly does, like:

  • where is the drush cim command specific documentation?
  • Does cim command remove the files after they are imported, or not?
  • where are the setting files imported from, can you provide me with a path relative to the root (I mean, relative to where the main index.php file of drupal is)?
  • can we change the import path?
  • can we tell drush to just delete any (previously exported) setting files ?
3

where is the drush cim command specific documentation?

https://drushcommands.com/drush-9x/config/config:import/

Does cim command remove the files after they are imported

No.

where are the setting files imported from, can you provide me with a path relative to the root (I mean, relative to where the main index.php file of drupal is)?

The path to the configuration folder is set in settings.php file. It will look like $configuration_directories = "path/to/config/folder". This is relative to the Drupal root directory.

can we change the import path?

Yes, you can change the path in the settings.php file.

can we tell drush to just delete any (previously exported) setting files ?

Anytime you export configuration, all the old configuration files will be wiped out, and new ones created from the current active configuration in the database.

  • does running drush cdel delete all (previously exported) configurations? – Top-Master Apr 17 at 7:27
  • No. That function requires an argument - the configuration object to be deleted. I don’t believe all config can be deleted with that function. – Jaypan Apr 17 at 11:15
  • 1
    Also note that ‘cdel’ deletes configuration from the active configuration in the database, not the exported .yml files. – Jaypan Apr 17 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.