vip dev-env update
Update the settings of a local environment.
Usage
vip dev-env update [options]
Options
Option | Description |
---|---|
-a , --app-code |
Manage the source for application code. Accepts “demo” (default) for a read-only image of WordPress VIP skeleton application code, or a path to a VIP formatted application repo on the local machine. |
-c , --cron |
Enable or disable cron, disabled by default. Accepts “y” (default value) to enable or “n” to disable. |
-d , --debug |
Generate verbose output during command execution to help identify or fix errors or bugs. |
-e , --elasticsearch |
Enable or disable Elasticsearch (required by Enterprise Search), disabled by default. Accepts “y” (default value) to enable or “n” to disable. |
-h , --help |
Retrieve a description, examples, and available options for a (sub)command. |
-A , --mailpit |
Enable or disable Mailpit, disabled by default. Accepts “y” (default value) to enable or “n” to disable. |
-r , --media-redirect-domain |
Configure media files to be proxied from a VIP Platform environment. Accepts a string value for the primary domain of the VIP Platform environment or “n” to disable the media proxy. |
-u , --mu-plugins |
Manage the source for VIP MU plugins. Accepts “demo” (default) for a read-only image of the staging branch, or a path to a built copy of VIP MU plugins on the local machine. |
-H , --photon |
Enable or disable Photon, disabled by default. Accepts “y” (default value) to enable or “n” to disable. |
-P , --php |
Manage the version of PHP. Accepts a string value for minor versions: 8.2, 8.1, 8.3 |
-p , --phpmyadmin |
Enable or disable phpMyAdmin, disabled by default. Accepts “y” (default value) to enable or “n” to disable. When enabled, refer to the value of “PHPMYADMIN URLS” in the information output for a local environment for the URL to access phpMyAdmin. |
-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. |
-w , --wordpress |
Manage the version of WordPress. Accepts a string value for major versions (6.x). Defaults to the most recent version of WordPress. |
-x , --xdebug |
Enable or disable XDebug, disabled by default. Accepts “y” (default value) to enable or “n” to disable. |
-X , --xdebug_config |
Override some default configuration settings for Xdebug. Accepts a string value that is assigned to the XDEBUG_CONFIG environment variable. |
Examples
- Update or confirm all settings for the local environment named "example-site" in the setup wizard.
$ vip dev-env update --slug=example-site
- Update the PHP version to 8.2 in the `update` command then enter the setup wizard to update or confirm all other settings. * Configuration options that are set in the `update` command will be skipped in the setup wizard.
$ vip dev-env update --php=8.2 --slug=example-site
- Update application code to load from a path on the user's local machine for the local environment.
$ vip dev-env update --app-code=/Users/example/Desktop/example-app-code --slug=example-site
Last updated: November 18, 2024