The WP-CLI extension automatically sets up your Chassis instance to be able to automatically install WP-CLI packages on your Chassis box.
- Add this extension to your extensions directory
git clone https://github.com/Chassis/WP_CLI.git extensions/wp_cli
- Run
vagrant provision
.
- Add
- chassis/wp_cli
to yourextensions
in one of you yaml files. e.g.extensions: - chassis/wp_cli
- Run
vagrant provision
.
You can have Chassis automatically run composer install
in a number of directories in your project by adding a list of directories in one of your yaml files. e.g.
wp_cli:
packages:
- wp-cli/server-command
- wp-cli/restful
You'll need to run vagrant provision
for those to be installed if you'd added them after your first initial Chassis vagrant up
.