From 2d43d4179643314b6c591a26e2699c349ebfef5c Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Tue, 21 May 2024 12:52:40 +0200 Subject: [PATCH] Add env config to readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5585f07..84483b9 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,14 @@ kirby make:command hello --global The command file will then be place in `~/.kirby/commands/hello.php` and is automatically available everywhere. +## Command environment + +To load a custom environment config for a particular host, you can set an env variable + +``` +env KIRBY_HOST=production.com kirby mycommand +``` + ## Command plugins Your Kirby plugins can define their own set of commands: https://getkirby.com/docs/reference/plugins/extensions/commands