Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code, CLI or a cronjob
https://forum.getkirby.com/t/kirby3-janitor-plugin/23573 โ// momentum
// why it's here
- Active: last commit today
- Health 100/100 with only 93 stars
- Around since 2018 and still shipping
// how to help
// readme
Kirby Janitor
Janitor is a Kirby CMS Plugin for running commands.
- It is a Panel Button!
- It has commands built-in for cleaning the cache, sessions, create zip-backup, pre-generate thumbs, open URLs, refresh the current Panel page and more.
- You can define your own commands (call API hooks, play a game, hack a server, โฆ)
- It can be triggered in your frontend code, with the official kirby CLI and a CRON.
Install
Janitor 6 requires Kirby 6 and PHP 8.3 or newer. On Kirby 5, stay on Janitor 5 (^5). From your Kirby 6 project, install Janitor and its local CLI dependency with Composer:
composer require bnomei/kirby-janitor:^6
Warning
You need to install the CLI with composer into your project and not use the global version. Since Janitor depends on the CLI to be available, installing only the janitor plugin via submodules or via ZIP is NOT supported.
The Panel assets are included. To rebuild them, use Node 24+ and run npm ci && npm run build.
Setup
CLI Command
In any blueprint create a janitor field with your command, browse to that page in panel and press the button.