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
Argument | Description |
---|---|
-d , --debug | Activate debug output |
-h , --help | Output the help for the (sub)command |
-s , --slug | Custom name of the dev environment |
-v , --version | Output 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
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: December 17, 2022