# Install Craft CMS 6 locally

Source: https://docs.fortrabbit.com/guides/craft-cms/craft-6/install
Published: 2026-11-27
Updated: 2026-11-27
Reviewed: 2026-11-27

> Install the Craft CMS 6 beta locally with Composer and DDEV, then put it in a GitHub repository for git deployment to fortrabbit.


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](/guides/craft-cms/install).

## Install and deploy run down

1. **Install Craft CMS 6 locally** _← you are here_
2. [Set up an app at fortrabbit](/guides/craft-cms/craft-6/setup)
3. [Deploy code via Git](/guides/craft-cms/craft-6/deployment)
4. [Database syncing](/guides/craft-cms/craft-6/database)
5. [Assets](/guides/craft-cms/craft-6/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`, not `web`
- Commands run with `php artisan craft:…`, for example `php artisan craft:up`
- Database settings in `DB_*` ENV vars, not `CRAFT_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](/guides/craft-cms). Moving from Craft 5 to 6? See the [Craft upgrade guide](https://craftcms.com/docs/6.x/upgrade.html).

## Get ready

- Have a [local development environment](/integrations/local-development/intro) running. [DDEV](/integrations/local-development/ddev) is recommended.
- Use PHP 8.5 or newer, locally and on fortrabbit.
- Keep the [official Craft CMS 6 install guide](https://craftcms.com/docs/6.x/install.html) 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:



```shell
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](/platform/components/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](/integrations/git-clients/gh-cli):



```shell
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](/guides/craft-cms/craft-6/env-vars) of the environment take the place of `.env`. See the [deployment intro](/platform/deployment/intro) for how git deployment works.
