From b1a035edac37d29c6802fd29dcca8fac8681c749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Wed, 28 Dec 2016 21:59:14 -0500 Subject: [PATCH] Issue #1047: Add docs on Drupal Console remote command execution [ci skip] --- docs/extras/drupal-console.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/extras/drupal-console.md b/docs/extras/drupal-console.md index 253470830..82c24452f 100644 --- a/docs/extras/drupal-console.md +++ b/docs/extras/drupal-console.md @@ -18,3 +18,21 @@ vagrant@drupalvm:/var/www/drupalvm/drupal/web$ drupal cache:rebuild all The command was executed successfully! ``` + +## Remote command execution + +To run commands on your host computer but execute them on the VM, add a new sites file `~/.console/sites/drupalvm.yml` on your host computer: + +```yaml +dev: + root: /var/www/drupalvm/drupal + host: 192.168.88.88 + user: vagrant + password: vagrant +``` + +Execute from host machine using the `--target` option. + + drupal --target=drupalvm.dev site:status + +For more details, see [Drupal Console's documentation](https://hechoendrupal.gitbooks.io/drupal-console/content/en/using/how-to-use-drupal-console-in-a-remote-installation.html)