Skip to main content
Webhaven

Main navigation

  • Home
  • Who it's for
    • Drupal newcomers & learners
    • Drupal experts
    • Ambitious agencies
  • Features
  • Go to demo
  • Docs
  • Get launch notified
  • English
Just launched the Webhaven demo website. Check it out! 🚀

Breadcrumb

  1. Home
  2. Webhaven documentation
  3. Handy resources
  4. Useful DDEV commands

Documentation

  • Documentation
    • Welcome
  • Get started
    • What is Webhaven?
    • Installation
    • Roadmap
  • Theming
    • Introduction
    • Theme structure
    • Create your own custom theme
    • Single Directory Components (SDC)
    • Component structure
    • An example component
  • Handy resources
    • Drupal Canvas
    • Useful DDEV commands
    • Drupal site template

Useful DDEV commands

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-snapshot

Database 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 sequelace

Drush 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 deploy

Composer 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

On this page
Webhaven
Launch your next Drupal project in days, not weeks.

Links

  • Launch notification
  • Features
  • Discover the demo
  • Documentation
  • Showcase
  • Blog
  • Frequently asked questions
  • Roadmap
  • Get in touch

Follow on

  • drupal profile
  • linkedin profile
  • x-twitter profile
© 2026 Webhaven. All rights reserved.

Legal

  • Privacy policy
  • Terms of service
  • Login
Built with