Skip to content

Browse: Home / VIP-CLI Commands / vip import / vip import sql

vip import sql [options] [command]

Import SQL to your database from a file

Commands

NameDescription
statusCheck the status of the current running import

Options

ArgumentDescription
-a, --appSpecify the app
-d, --debugActivate debug output
-e, --envSpecify the environment
-f, --forceSkip confirmation (disabled by default)
-h, --helpOutput the help for the (sub)command
-i, --in-placeSearch and Replace explicitly on the given input file
-o, --output [value]Specify the replacement output file for Search and Replace (defaults to “process.stdout”)
-S, --search-replacePerform Search and Replace on the specified SQL file
-s, --skip-validateDo not perform pre-upload file validation. If unsupported entries are present, the import is likely to fail
-v, --versionOutput the version number

Examples

   # Import the given SQL file to your site
    $ vip import sql @mysite.develop <file.sql>

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: October 04, 2022