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

What is Craft Nitro?

Craft Nitro is a Docker-based local hosting solution by Pixel & Tonic, the developers of Craft. It is designed as an officially-supported way to handle local development of Craft CMS website builds, as well as when working on plugin development.

Craft Nitro is a Dock­er-based local host­ing solu­tion by Pix­el & Ton­ic, the devel­op­ers of Craft. Craft Nitro is an offi­cial­ly sup­port­ed way to han­dle local devel­op­ment of Craft CMS web­site builds and when work­ing on plu­g­in development.

Craft Nitro replaces the need for tools like MAMP, XAMPP, WAMP, or Lar­avel Valet.

Nitro does not use sys­tem soft­ware libraries (like PHP or MySQL) and instead spins up a ded­i­cat­ed set of Dock­er con­tain­ers to han­dle that software. 

Why does this matter?

By using a Dock­er-based local devel­op­ment envi­ron­ment, we can:

  • peg our PHP, MySQL, or Post­gres ver­sions to the ver­sions we use in production
  • every project can have a ded­i­cat­ed devel­op­ment environment
  • Noth­ing breaks when updat­ing our com­put­er oper­at­ing system

How is Nitro dif­fer­ent than oth­er Dock­er-based localhosting?

Nitro does a spe­cif­ic job: reli­ably han­dle local devel­op­ment for Craft CMS projects. It uses Dock­er behind the scenes, but we do not need to mess with tool­ing we would in a typ­i­cal hand-rolled Dock­er setup. 

Addi­tion­al­ly, we do not have any extra files in our Craft project.

Final­ly, Nitro is devel­oped and main­tained by the team behind Craft CMS, so any improve­ments, fix­es, or updates are not a bur­den we have to car­ry. We can rest assured that there is some­one else han­dling that.

Here are all of the videos in Local Development with Craft Nitro:

1 What is Craft Nitro? Craft Nitro is a Docker-based local hosting solution by Pixel & Tonic, the developers of Craft. It is designed as an officially-supported way to handle local development of Craft CMS website builds, as well as when working on plugin development. 04:08
2 Is Craft Nitro Right for Me? Five checks to see if Craft Nitro is the local development environment for you. 02:33
3 How to Install Craft Nitro Installing Craft Nitro on macOS requires Docker, so that means you need to first have Docker Desktop for Mac installed and working. 09:20
4 Creating Your First Site with Nitro Now that we have Nitro installed, we are ready to create our first Craft hosted with Nitro. 09:49
5 Setting Up A Boilerplate Project with Craft Nitro If you have a boilerplate project that you work with when starting new projects, it’s simple to use that to create a new Nitro project via the `nitro create` command. 04:35
6 Migrating an Existing Project to Craft Nitro Migrating an existing project to Nitro is probably going to be the most common scenario you run into, assuming you move all of your projects over instead of just using Nitro for new projects. 05:04
7 Running Craft Commands Against a Craft Nitro Site It's best to run all `craft` commands through the `nitro` command. 02:15
8 Craft CMS Multi-Site with Craft Nitro Supporting a Craft multi-site installation with Craft Nitro requires using the `nitro alias` command. 04:33
9 How to Recall Which Nitro Sites Are Running I like to be able to get a quick peak and reminds myself of what’s what and if I’ve even set up a project in Nitro yet. 02:58
10 Removing a Site from Craft Nitro Here is how to remove a site from Craft Nitro. 03:05
11 Testing Email Sending in Craft Nitro In addition to the core functionality of local hosting, Craft Nitro also has ancillary services that fill out the total experience of running a Craft site. 05:28
12 Updating Craft Nitro Nitro is an actively maintained project by Pixel & Tonic. You’ll get the best experience with Nitro if you regularly update to get the latest features and improvements. 01:37
13 Uninstalling Craft Nitro If you decide that Nitro isn’t for you or you need to troubleshoot an issue by uninstalling Nitro, then this is how to do it. 02:47
Course In-Progress This course is still being updated with new content. Check back for more!

Dozens of Courses Are Waiting

Invest in yourself, your career, and your ability to take knowledge and use it grow your business or earning potential.

Get everything in the catalog plus new videos every week. Just by signing up you get immediate access to hundreds of hours of learning.

Start CraftQuest

Image