vip search-replace [options]
Perform search and replace tasks on files
Options
Argument | Description |
---|---|
-d , --debug | Activate debug output |
-h , --help | Output the help for the (sub)command |
-i , --in-place | Perform the search and replace explicitly on the input file |
-o , --output | Specify the replacement output file for Search and Replace |
-s , --search-replace | Specify the <from> and <to> pairs to be replaced |
-v , --version | Output 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
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: January 30, 2023