Skip to content

Browse: Home / VIP-CLI Commands / vip search-replace

vip search-replace [options]

Perform search and replace tasks on files

Options

ArgumentDescription
-d, --debugActivate debug output
-h, --helpOutput the help for the (sub)command
-i, --in-placePerform the search and replace explicitly on the input file
-o, --outputSpecify the replacement output file for Search and Replace
-s, --search-replaceSpecify the <from> and <to> pairs to be replaced
-v, --versionOutput the version number

Examples

   # Replace instances of <from> with <to> in the provided <file.sql>
       * Ensure there are no spaces between your search-replace parameters
    $ vip search-replace <file.sql> --search-replace="from,to"

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: September 30, 2022