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_HOME/lib
folder.
Tip: $LIQUIBASE_HOME is an environment variable that points to the location of the directory where Liquibase is installed on your machine. You can set environment variables using your operating system's shell. The location of $LIQUIBASE_HOME will depend on where Liquibase was installed on your machine.
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 $LIQUIBASE_HOME/lib/liquibase_autocomplete.bash ] && . $LIQUIBASE_HOME/lib/liquibase_autocomplete.bash
Example for MacOS:
[ -f $LIQUIBASE_HOME/lib/liquibase_autocomplete_mac.bash ] && . $LIQUIBASE_HOME/lib/liquibase_autocomplete_mac.bash
Example: Type liquibase che
and press the Tab key. The result of autocompleting will be liquibase checks
.