Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1085 from oxyc/drupal-console-docs
Browse files Browse the repository at this point in the history
Issue #1047: Add docs on Drupal Console remote command execution
  • Loading branch information
geerlingguy authored Dec 29, 2016
2 parents ce20abb + b1a035e commit 43bb866
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/extras/drupal-console.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 43bb866

Please sign in to comment.