Create a Project
# Project Folder
The first step is to create a folder named
tutorial for us to work in. If you have a place you normally keep development projects, create it alongside those—if not, your desktop or home folder is fine, for now!
In your terminal, run the following commands to create and move into your project folder:
cd /path/to/dev/folder mkdir tutorial cd tutorial
Then run the following commands to configure a new DDEV project there:
Create DDEV configuration files:
ddev config --project-type=craftcms --docroot=web --create-docroot
Scaffold the project from the official starter project:
ddev composer create -y --no-scripts craftcms/craft
Run the Craft setup wizard
ddev craft install
Answer the prompts, leaving
Site URLset to the default value (
https://tutorial.ddev.site)—unless you chose something other than
tutorialwhen creating your project folder.
Remember the username and password you choose for your user account! We’ll need those in a moment.
Once the last command has finished, Craft is fully installed! To open your installation in a web browser, run:
You should see Craft’s default welcome template:
Now, let’s take a look at the contents of your newly-populated project folder.