Skip to content

vip dev-env shell [options]

Spawn a shell to run commands against a running local environment.

Options

ArgumentDescription
-d, --debugActivate debug output
-h, --helpOutput the help for the (sub)command
-r, --rootSpawn a root shell
-S, --serviceSpawn a shell in a specific service (default value is php)
-s, --slugCustom name of the dev environment
-v, --versionOutput the version number

Examples

    # Spawn a shell in a local environment
    $ vip dev-env shell

    # Spawn a shell in a local environment under root user
    $ vip dev-env shell -r

    # Run a `ls -lha` command in the shell of a local environment
    $ vip dev-env shell -- ls -lha

    # Run a `ls -lha` command in the shell of the database service in a local environment
    $ vip dev-env shell -S database -- ls -lha

Global Options

ArgumentDescription
-a, --app=<app>Specify the app
-d, --debugActivate debug output
-e, --env=<env>Specify the environment
-h, --helpOutput the help for the (sub)command
-v, --versionOutput the version number
-y, --yesRun the command in production without a confirmation prompt

Last updated: February 28, 2023