vip dev-env import sql [options]
Import a SQL database file to a local environment
Options
Argument | Description |
---|---|
-d , --debug | Activate debug output |
-h , --help | Output the help for the (sub)command |
-i , --in-place | Search and Replace explicitly on the given input file |
-r , --search-replace | Perform Search and Replace on the specified SQL file |
-S , --skip-validate | Do not perform file validation. |
-s , --slug | Custom name of the dev environment |
-v , --version | Output the version number |
Examples
# Import the contents of a WordPress database from an SQL file $ vip dev-env import sql some-wp-db-file.sql # Import the contents of a WordPress database from an SQL file into `my_site` $ vip dev-env import sql wordpress.sql --slug=my_site # Import the contents of a WordPress database from an SQL file and replace the occurrences of `testsite.com` with `test-site.go-vip.net` $ vip dev-env import sql wordpress.sql --search-replace="testsite.com,test-site.go-vip.net" # Import the contents of a WordPress database from an SQL file and replace the occurrences of `testsite.com` with `test-site.go-vip.net` in place (modifies the original SQL file) $ vip dev-env import sql wordpress.sql --search-replace="testsite.com,test-site.go-vip.net" --in-place
Global Options
Argument | Description |
---|---|
-a , --app=<app> | Specify the app |
-d , --debug | Activate debug output |
-e , --env=<env> | Specify the environment |
-h , --help | Output the help for the (sub)command |
-v , --version | Output the version number |
-y , --yes | Run the command in production without a confirmation prompt |
Last updated: January 05, 2023