Skip to content

Commit

Permalink
Add env config to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier authored May 21, 2024
1 parent ef838d6 commit 2d43d41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d43d41

Please sign in to comment.