Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community

Updating an Existing Project to Craft 3.7 Beta

How to safely update an existing project to Craft 3.7 beta.

The best way to test Craft 3.7 beta in an exist­ing project is to cre­ate a new Git branch local­ly, clone the local data­base and update the .env file to point to the new data­base. This way, you iso­late the Craft 3.7 beta entire­ly from any oth­er local devel­op­ment work you have going on.

Once you do that, update the composer.json file for the project and change the ver­sion of Craft to ^3.7.0-beta.1.

"craftcms/cms": "^3.7.0-beta.1",

This SemVer string will get you the beta 1 and every­thing that comes after it until 3.8.0.

To get the beta ver­sion of Craft, update Com­pos­er in the project to pull down the lat­est dependencies.

$ composer update

You should see the 3.6.x to 3.7.0‑beta.1 update print­ed out to the screen.

The final step is to update the data­base with any changes required by 3.7 beta using the migra­tions command.

$ php craft migrate/all

If you’re run­ning Nitro, then you’ll use:

$ nitro craft migrate/all

You can also sim­ply open up the Craft con­trol pan­el for the project and it will prompt you to run the migrations.

Instructor
Ryan Irelan
Level
Beginner
Date Published
June 15, 2021
Ryan Irelan

I am the creator of CraftQuest, a web developer, and former software team manager. I spend most of my time improving CraftQuest with code and courses. When I'm not in front of the computer, I spend my time with my family, and running on the roads and trails of Austin, TX.