Plugin support for our Joomla Console

Plugins in Joomla Console

Plugins in Joomla Console

About a year ago, we introduced our Joomla console. It can turn tedious tasks like creating new sites and installing new extensions into short one-liners on the command line.

Thanks to some great community contributions we have been able to release new versions adding numerous features in the past year.

Improved extensibility

This week marks an important milestone for the project with the release of version 1.3, introducing a brand new plugin system for console commands.

We have had various feature requests for different tasks and implemented some of them, but many still remain on the table. Instead of consolidating all tasks into the core we have made the commands extensible.

You can now easily create and distribute your own Joomla console plugins using Composer and Packagist.

Installing plugins

All you have to do is publish your plugin through Packagist to allow it to be installed into the Joomla console.

To see how easy it is, take a look at our example plugin on GitHub. This plugin adds a backup command to the console. To install it, just run this command:

$ joomla plugin:install joomlatools/console-backup

Creating your own

Creating your own plugins is very easy. The console is build using Symfony’s Console package. You can find complete instructions on how to build a Symfony console command with extra arguments and options on their documentation pages.

Instructions how to create a console plugin, package and publish it are available on our developer site including examples to get started.

Get involved

We look forward to seeing what you’ll build with it! And when you’re done, send us a tweet or ping us on Facebook and share your work with the world.

Happy coding!

Up next

How to link to a page in a pdf file.

How to link to a given page in a PDF file when rendered in the browser.

Read more →

Switching from WordPress to Joomla and setting up a document repository

Demistifying the switch from WordPress to Joomla and DOCman

Read more →

How Meltdown and Spectre affects your Joomla site

Here's what we learned so far about the Meltdown and Spectre vulnerabilities.

Read more →