vip dev-env shell
Create a shell and run commands against a local environment.
Usage
vip dev-env shell [options]
Options
Option | Description |
---|---|
-d , --debug |
Generate verbose output during command execution to help identify or fix errors or bugs. |
-h , --help |
Retrieve a description, examples, and available options for a (sub)command. |
-r , --root |
Create with root privileges. |
-S , --service |
Restrict to a single service. |
-s , --slug |
A unique name for a local environment. Default is “vip-local”. |
-v , --version |
Retrieve the version number of VIP-CLI currently installed on the local machine. |
Examples
- Create and enter an SSH command shell for the PHP service (default) of the local environment named "example-site".
$ vip dev-env shell --slug=example-site
- Create and enter an SSH command shell with root privileges for the local environment.
$ vip dev-env shell --root --slug=example-site
- Create an SSH command shell for the local environment and run the command "ls -lha". * A double dash ("--") must separate the arguments of "vip" from those of the command.
$ vip dev-env shell --slug=example-site -- ls -lha
- Create an SSH command shell for the database service of the local environment and run the command "ls -lha".
$ vip dev-env shell --service=database --slug=example-site -- ls -lha
Last updated: November 18, 2024