Command line tool¶
Imbo ships with a command line tool which can aid you when setting up Imbo and keeping it up to date. This chapter lists all available commands and what they are capable of.
The binary can be found in one of two places, depending on the Installation method you chose. If you installed Imbo via Composer, the binary can be found in
vendor/bin/imbo, and if you used git clone as the installation method it can be found in
When using a mutable access control adapter (usually meaning it’s backed by a database or similar), this command helps you with adding public/private key pairs and associated rules. It’s an alternative to using Imbo’s public REST API for this purpose, and is the only way to add an initial public key with access to create and modify other public keys.
./bin/imbo add-public-key somePublicKey
The above command will start an interactive session that will guide you through creating a public key with the name
somePublicKey, given it does not already exist.
The script that was earlier called
scripts/generatePrivateKey.php is now included in the CLI tool. This commands does not support any arguments.
The above command will simply output a secret key that can be used as a private key for an Imbo user.
Use this command to get a detailed description of another command along with available arguments and their effect on the command.
./bin/imbo help generate-private-key
The above command will provide a description of the generate-private-key command.