Autocompleting Liquibase Commands
Liquibase provides the autocomplete option for commands run on the macOS and Linux/Unix operating systems or Git Bash and Cygwin CLI tools for Windows. You can find the liquibase_autocomplete.sh
in the liquibase/lib
folder.
To start using the autocomplete option, do the following steps:
-
Ensure that the
liquibase_autocomplete.sh
path is in the~/.bash_profile
or~/.profile
or~/.bashrc
filesExample for Linux, Git Bash, and Cygwin:
- Start typing the command and use the Tab key to have the full version of it.
[ -f /path/to/liquibase/lib/liquibase_autocomplete.bash ] && . /path/to/liquibase/lib/liquibase_autocomplete.bash
Example for MacOS:
[ -f /path/to/liquibase/lib/liquibase_autocomplete_mac.bash ] && . /path/to/liquibase/lib/liquibase_autocomplete_mac.bash
Example: Type liquibase che
and press the Tab key. The result of autocompleting will be liquibase checks
.