{"repo":"getkirby/cli","free":true,"listed":false,"github":"https://github.com/getkirby/cli","clone":"git clone https://github.com/getkirby/cli.git","description":"Kirby Command Line Interface","language":"PHP","stars":66,"topics":["cli","cms","devtools","dx","kirby","kirby4","kirby5","php","kirby3"],"license":"MIT","category":"cli-tools","readme_excerpt":"Kirby CLI The Kirby command line interface helps simplifying common tasks with your Kirby installations. Installation Via Composer Make sure to add your composer bin directory to your /.bash profile (Mac OS users) or into your /.bashrc (Linux users). Your global composer directory is normally either /.composer/vendor/bin or /.config/composer/vendor/bin . You can find the correct path by running … Afterwards, add the result to your bash profile … Did it work? Check if the installation worked by running the following in your terminal. This should print the Kirby CLI version and a list of available commands Available core commands Writing commands You can create a new command via the CLI: This will create a new site/commands folder in your installation with a new hello.php file The CLI will already put the basic scaffolding into the file: You can define your command logic in the command callback. The $cli object comes with a set of handy tools to create output, parse command arguments, create prompts and more. Command Classes You can also define commands as classes. Your custom command class must extend the built-in Kirby\\CLI\\Command class: Global commands You might have some commands that you need for all your local Kirby installations. This is where global commands come in handy. You can create a new global command with the --global flag: The command file will then be place in /.kirby/commands/hello.php and is automatically available everywhere. Command environment To load a c","default_branch":null,"files":null,"tree":[],"storefront":"/r/getkirby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/getkirby/cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}