This is a Stub article. Help the eZ Publish community by expanding it!

What is a CLI script

A command line script is a php script which can have parameters

Cronjob vs CLI scripts

Cronjob and CLI scripts are similar in the way that they are both run from the command line. However, there are two important differences between CLI scripts and cronjob scripts:

CLI scripts can have parameters, while cronjob scripts cannot take any parameters

Cronjob scripts set up the environment for you. That means creating a connection to the database, activating a siteaccess and activating extensions. If you implement a CLI script, you need to do all of this yourself.