Skip to content

vip dev-env import media [options]

Import media files from a compressed web archive to a local environment of your application. This command will copy the contents of a directory to the `uploads` directory of the target local environment.

Options

ArgumentDescription
-d, --debugActivate debug output
-h, --helpOutput the help for the (sub)command
-s, --slugCustom name of the dev environment
-v, --versionOutput the version number

Examples

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

   # Import contents of the given WP uploads folder file into the media library of a local environment named `mysite`
    $ vip dev-env import media path/to/wp-content/uploads --slug=mysite

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