Starting a Project¶
Once DDEV’s installed, setting up a new project should be quick:
- Clone or create the code for your project.
cdinto the project directory and run
ddev configto initialize a DDEV project.
ddev startto spin up the project.
ddev launchto open your project in a browser.
DDEV automatically detects your project type and docroot. If it guessed wrong or there’s something else you want to change, update project options by editing
.ddev/config.yaml and running
ddev describe, or using the
ddev config command.
What’s a project type?
php project type is the most general, ready for whatever modern PHP or static HTML/JS project you might be working on. It’s just as full-featured as other CMS-specific options, without any assumptions about your configuration or presets. (You can use this with a CMS or framework just fine!)
If you need to configure your app to connect to the database, the hostname, username, password, and database name are each
While you’re getting your bearings, use
ddev describe to get project details, and
ddev help to investigate commands.
Next, you may want to run
ddev composer install, import a database, or load user-managed files.
If you’re new to DDEV, check out Using the
ddev Command for an overview of what’s available.