-2

I would like to know where the config directory is, and how drush cim command exactly handles it?

Edit: The old title (i.e. "Where is Drush's command-specific documentation?") was because I thought maybe there is already complete documentation about it,
But the documentation here (which was pointed by the answer) from July 2019 could not help with that.

closed as too broad by kiamlaluno Jul 31 at 12:24

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    It's not that helpful to you, OK. What exactly are you missing? What is left unclear? Have you also had a look in Drush's source code on GitHub already? – leymannx Jul 31 at 4:56
  • 1. what I am missing is documentation, I mean, just listing some options is funny in a bad way. 2. As a total beginner, I do not understand Drush's source-code, or even where that commands code is in the first place! (o_O) but I'm sure you would not have any problems with finding the codes :-) – Top-Master Jul 31 at 6:16
  • 2
    We don’t locate documentation here (it’s something that many years have taught us that Q+A is not a good format for). But that said, it seems you’ve already found the documentation, you just don’t personally find it useful - that doesn’t automatically mean that more detailed documentation exists somewhere else. In this case I doubt it does. So that probably leaves you with 2 options: 1. raise a feature request to drush for more detailed documentation, or 2. ask a detailed question here about the specific, practical problem you’re trying to solve by using cim, and how far you’ve got with it – Clive Jul 31 at 7:19
  • 1
    Look at step 4 of method 3 in this post - it may answer some questions: morpht.com/blog/… – Jaypan Aug 1 at 6:28
  • 1
    Look at github.com/drush-ops/drush/blob/9.7.1/src/Drupal/Commands/… to find the exact code that's being executed. – leymannx Aug 1 at 7:14
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

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