What are Craft CMS console commands and how do they work?
The console commands in Craft allow you to take action on Craft without involving a web browser or even the usual limits on memory limits and max execution time PHP imposes on external processes.
A commonly used Craft CMS console command is the one for installing a plugin:
ddev craft plugin/install buggy
But you can also run all database migrations using the migrate command.
ddev craft migrate/all
Craft console commands are helpful for more time-consuming, memory-intensive tasks, like multiple image transforms, re-saving entries, re-saving matrix blocks.
Follow along with the full transcript
Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.
Sign up for Premium