Craft CLI (Console Command Line Interface)

Craft CMS comes with a con­sole com­mand line inter­face (CLI). The CLI allows devel­op­ers to per­form var­i­ous admin­is­tra­tive and devel­op­ment tasks direct­ly from the ter­mi­nal, such as run­ning updates, clear­ing caches, and man­ag­ing data­base migra­tions. Plu­g­ins can also add their own CLI commands.

To access the CLI for Craft CMS, run:

php craft

Or, if you’re using DDEV:

ddev craft

Both of those com­mands will out­put all avail­able Craft con­sole com­mands, includ­ing those for installed plugins.