cli
cli copied to clipboard
Kirby Command Line Interface
You can now load a different host config by setting the new KIRBY_HOST env variable: ``` env KIRBY_HOST=production.com kirby my-command ``` @lukasbestle could you have a look at this. I...
For many tasks a user might want to do with a cli command, configuration differs for production/staging/dev environments. Kirby solves this very elegantly with `config.domain.ext.php` files, but these are not...
The `clear:cache` prompts for the name for the cache to clear and defaults to the `pages` cache. However, there's no way to just clear _all_ caches at once. This would...
Hey there, looking at the [`CLImate` docs](https://climate.thephpleague.com/terminal-objects/json) linked in `README.md`, one would expect that `$cli->json($myJson)` (eg inside a custom command) outputs JSON into the terminal - but all it does...
when calling a command in like a template with `\Kirby\CLI\CLI::command('janitor:whistle')` it will fail with `undefined constant STDOUT`. suggestion when a command is not run in cli (check via `php_sapi_name() ===...
not like in help but just one item per line. why? that can be used in further automations like fig. 
When using composer.json ```json "extra": { "kirby-cms-path": false, } ``` the cli fails. I am not sure if "kirby-cms-path" sets the path or you can just use `false` so it's...
hello everyone, I mainly use Hetzner hosting and would need the CLI for the newer versions of the janitor plugin to work. from my understanding i think I won't be...
Using kirby-cli during deployments itβs sometimes necessary to run kirby-cli commands for different websites on the same host that live in different folders. Currently kirby-cli expects the kirby installation in...