opdavies / drupal-vm-cli
A CLI tool for generating Drupal VM.
Requires
- guzzlehttp/guzzle: ^6.2
- knplabs/github-api: ^1.6
- opdavies/twig-extensions: ^1.1
- symfony/console: ^2.7|^3.0
- symfony/filesystem: ^2.7|^3.0
- symfony/yaml: ^2.7|^3.0
- twig/twig: ^1.24
Requires (Dev)
- phpunit/phpunit: ^5.7
- symfony/process: ^2.7|^3.0
Suggests
- geerlingguy/drupal-vm: The main Drupal VM project.
README
A Symfony Console application that manages and customises configuration files for Drupal VM projects.
Installation
See https://github.com/opdavies/drupal-vm-cli/wiki/Installation.
Usage
With the drupalvm
command installed, you can now run it to generate your configuration file.
Each variable configurable with the application has an option that you can set when running the command.
Here is an example with all of the options set beforehand:
drupalvm config:generate \
--hostname=example.com \
--machine-name=example \
--ip-address=192.168.88.88 \
--cpus=1 \
--memory=512 \
--webserver=nginx \
--path=../site \
--destination=/var/www/site \
--docroot=/var/www/site/drupal \
--drupal-version=8 \
--database-name=drupal \
--database-user=drupal \
--database-password=drupal \
--build-makefile=no \
--install-site=true \
--installed-extras=xdebug,xhprof \
--overwrite
If an option is not set, you will be asked a question instead to collect the value.
Author
Oliver Davies - PHP Developer & Linux System Administrator
Contributing
I’m happy to receive support and feature requests, bug reports, and pull requests torwards this project.
All bug reports and feature and support requests should be logged in the issue tracker.
Please run drupalvm --version
and include the version number with any bug report or support request.
All pull requests should be from a topic branch in your forked repository, merging back into master
.