Skip to content

vip dev-env import [options] [command]

Import data into a local WordPress environment

Commands

NameDescription
mediaImport media files to the dev environment of your application from a compressed web archive. This command will copy the contents of a folder to the `uploads` folder of the target dev environment.
sqlImport SQL to your dev-env database from a file

Options

ArgumentDescription
-d, --debugActivate debug output
-h, --helpOutput the help for the (sub)command
-v, --versionOutput the version number

Examples

   # Import the given SQL file to your site
    $ vip dev-env import sql file.sql

   # Import contents of the given WP uploads folder file into the media library of the default dev environment
    $ vip dev-env import media path/to/wp-content/uploads

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: December 17, 2022