Event Gallery

Are you looking for Event Gallery? Jump to the information page.

Chapter 4. CLI - Command Line Interface

If you’re working only with the Joomla back end, you probably don’t need the CLI tools. For bulk data processing or for scheduled jobs, the command line interface of Event Gallery comes in handy.

Joomla offers a command-based CLI. Open a shell in the root folder of your site and run php cli/joomla.php. This will list the available commands. The Event Gallery commands are all prefixed with eventgallery:. To get help on a single command, use php cli/joomla.php help [the command], for example php cli/joomla.php help eventgallery:sync.

[Note]Note

The commands are registered by the Event Gallery - Console Plugin. If the eventgallery: commands do not show up in the list, make sure that plugin is enabled.

[Tip]Tip

Run the commands, and the cron jobs which call them, as the user your web server runs PHP as. Files a command creates - thumbnails, cache files, the log files in administrator/logs - belong to the user who ran it, and if that is someone else, for example root, the web server may not be able to change them later.

Figure 4.1. The Joomla command line interface

cli joomla4

eventgallery:sync

Starts the sync of database and file system. Adds, removes and updates all files which are located in the local folders and Amazon S3 folders.

  • --publish=true (or -p=true)

    Publishes new events right away. The default is false, so new events stay unpublished until you publish them yourself.

  • --onlynew=true (or -o=true)

    Restricts the run to new events instead of walking everything that is already known. The default is false.

Example: php cli/joomla.php eventgallery:sync --publish=true

All prices include VAT. The gross price will vary depending on the selected shipping country.