Introduction to the Craft Console Command Line Interface (CLI)
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.
Introduction to the Craft Console Command Line Interface (CLI) is made up of the following videos: