# Drush

### Instalation

It's pretty easy to install drush. On the terminal Go to your root drupal folder, and execute the following command:

```bash
composer require drush/drush
```

### Drush Commands i use most

```bash
# Cache clear
drush cc

# Cache and rebuild, same as domain.com/admin/rebuild.php
drush cr

# Export configuration, creates a configuration file in /config/sync
drush cex

# Import configuration, imports the configuration file from /config/sync
drush cim

# List modules/themes installed, can add flags to be more specific
# --status
# --type
drush pml

# Enable module
drush en MODULENAME

# Disable module
drush pmu MODULENAME

# Specific Migration commands

## drush migrate:import MIGRATIONNAME
drush mim MIGRATIONNAME

## drush migrate:rollback MIGRATIONNAME
drush mr MIGRATIONNAME

## drush migrate:reset MIGRATIONNAME
drush mrs MIGRATIONNAME
drush mrs MIGRATIONNAME --update
drush mrs MIGRATIONNAME --force

## drush migrate:status MIGRATIONNAME
drush ms MIGRATIONNAME

## drush migrate:messages MIGRATIONNAME
drush mmsg MIGRATIONNAME
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://drupal.bermaki.com/drupal-documentation-and-guides/spanish/drush.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
