DDEV commands to manage your Webhaven Drupal project efficiently. A list of commands to manage containers, run Drush, manage Composer and handling databases.
If you enjoy using DDEV I would like to ask you to consider to show your support to the project.
Container commands
A list of DDEV container related commands that I often use.
Start the project environment with:
ddev start
Restart the project environment with:
ddev restart
Stop the project environment without removing it with:
ddev stop
Stop all running DDEV projects with:
ddev poweroff
SSH into the web container with:
ddev logs
Show information about the running project with:
ddev describe
Remove the project with a database snapshot, without deleting your code with:
ddev delete
Remove the project without a database snapshot, without deleting your code with:
ddev delete --omit-snapshotDatabase commands
A list of DDEV database related commands that I often use.
Import a database dump into your project with:
ddev import-db --src=path/to/db.sql.gz
Export the current project database to a file with:
ddev export-db --file=path/to/db.sql.gz
Access the database directly via the MySQL CLI with:
ddev mysql
I use the Sequel Ace database Browser (macOS), I can access the database directly via Sequel Ace with:
ddev sequelaceDrush commands
A list of DDEV drush related commands that I often use.
Clear all caches with:
ddev drush cr
Import configuration from your sync directory with:
ddev drush cim -y
Export the current site configuration with:
ddev drush cex -y
Run database updates after a config or code change with:
ddev drush updb -y
Enable a module with:
ddev drush en module_name -y
Uninstall a module with:
ddev drush pmu module_name -y
Run cron manually:
ddev drush cron
Run drush deploy (for more information on this command see the Drush documenation):
ddev drush deployComposer commands
A list of DDEV Composer related commands that I often use.
Install all project dependencies defined in composer.json with:
ddev composer install
Update all dependencies to their latest allowed versions with:
ddev composer update
Install (require) a new package and add it to composer.json with:
ddev composer require drupal/package
Remove a package and update composer.json accordingly with:
ddev composer remove drupal/package