Craft CLI (Console Command Line Interface)
Craft CMS comes with a console command line interface (CLI). The CLI allows developers to perform various administrative and development tasks directly from the terminal, such as running updates, clearing caches, and managing database migrations. Plugins 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 commands will output all available Craft console commands, including those for installed plugins.