Skip to content

vip dev-env create [options]

Create a VIP Local Development Environment

Options

ArgumentDescription
-a, --app-codeUse the application code from a local directory or use “demo” for VIP skeleton code
-d, --debugActivate debug output
-e, --elasticsearchEnable Elasticsearch (needed by Enterprise Search)
-h, --helpOutput the help for the (sub)command
-A, --mailhogEnable MailHog (disabled by default)
-r, --media-redirect-domainDomain to redirect for missing media files. This can be used to still have images without the need to import them locally.
-u, --mu-pluginsUse a specific mu-plugins changeset or local directory
-m, --multisiteEnable multisite install
-H, --photonEnable Photon. By default it is disabled.
-P, --phpExplicitly choose PHP version to use
-p, --phpmyadminEnable PHPMyAdmin component. By default it is disabled
-s, --slugCustom name of the dev environment
-S, --statsdEnable statsd component. By default it is disabled
-t, --titleTitle for the WordPress site
-v, --versionOutput the version number
-w, --wordpressUse a specific WordPress version
-x, --xdebugEnable XDebug. By default it is disabled
-X, --xdebug_configExtra configuration to pass to xdebug via XDEBUG_CONFIG environment variable

Examples

   # Create a local environment
    $ vip dev-env create

   # Create a local environment with the slug "my_site"
   # Assigning unique slugs to environments allows multiple environments to be created.
    $ vip dev-env create --slug=my_site

   # Create a local multisite dev environment with a subdirectory structure, running WP v6.2 and loading local application code from "~/git/my_code"
    $ vip dev-env create --multisite=subdirectory --wordpress="6.2" --app-code="~/git/my_code"

   # Create a local environment based on some of the settings of production environment of application "mytestsite"
    $ vip @mytestsite.production dev-env create

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: July 03, 2023