Skip to content

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

   # Perform Search and Replace explicitly on the provided input <file.sql> file
    $ vip search-replace <file.sql> --search-replace="from,to" --in-place

   # Search and Replace to the specified output <output.sql> file
       * Has no effect when the `in-place` flag is used
    $ vip search-replace <file.sql> --search-replace="from,to" --output="<output.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: January 30, 2023