Install Craft CMS 6 locally
Published
Updated
Install the Craft CMS 6 beta locally with DDEV and put it in a GitHub repository for git deployment.
Craft CMS 6 is in beta, with a stable release planned for March 2027. Pixel & Tonic says it is not ready for production use. These guides follow the beta and change with it. For Craft 5, see Install Craft CMS locally.
Install and deploy run down
- Install Craft CMS 6 locally ← you are here
- Set up an app at fortrabbit
- Deploy code via Git
- Database syncing
- Assets
Differences to Craft 5
Craft 6 is a rewrite on Laravel 13. The deploy setup follows Laravel, not Craft 5:
- PHP 8.5 or newer
- Webroot
public, notweb - Commands run with
php artisan craft:…, for examplephp artisan craft:up - Database settings in
DB_*ENV vars, notCRAFT_DB_* - Craft filesystems are Laravel disks, set up in
config/filesystems.php - Queue and scheduler are Laravel's
Performance, caching and plugins are covered for Craft 5 only so far, in the Craft CMS 5 guides. Moving from Craft 5 to 6? See the Craft upgrade guide.
Get ready
- Have a local development environment running. DDEV is recommended.
- Use PHP 8.5 or newer, locally and on fortrabbit.
- Keep the official Craft CMS 6 install guide at hand.
Install with DDEV
Configure DDEV as a Laravel project with the public webroot and MySQL, then create the project. The setup wizard starts right after and asks for the admin account:
ddev config --project-type=laravel --docroot=public --php-version=8.5 --database=mysql:8.4
ddev composer create-project "craftcms/craft:^6.0.0-beta.1"
Use MySQL locally too. The Craft 6 skeleton defaults to PostgreSQL, and fortrabbit runs MySQL. Then build the site locally with templates, sections, fields and content.
Commit the project config
The install writes the project config to config/craft/project/. Commit that folder: deployments apply it on fortrabbit with php artisan craft:up.
Set up GitHub
Put the project in a git repository on GitHub, here with the GitHub CLI:
git init
git add .
git commit -m "Init"
gh repo create --private --source=. --push
The .gitignore of the skeleton keeps .env, vendor and the published Control Panel files in public/vendor/craft out of the repository. The build on fortrabbit installs vendor and publishes the Control Panel files, and the ENV vars of the environment take the place of .env. See the deployment intro for how git deployment works.