CLI Commands
Command line completion
Section titled “Command line completion”[HOME]
There is a file ./docs/dbdeployer_completion.sh, which is automatically generated with dbdeployer API documentation. If you want to use bash completion on the command line, copy the file to the bash completion directory. For example:
# Linux$ sudo cp ./docs/dbdeployer_completion.sh /etc/bash_completion.d$ source /etc/bash_completion
# OSX$ sudo cp ./docs/dbdeployer_completion.sh /usr/local/etc/bash_completion.d$ source /usr/local/etc/bash_completionThere is a dbdeployer command that does all the above for you:
dbdeployer defaults enable-bash-completion --remote --run-itWhen completion is enabled, you can use it as follows:
$ dbdeployer [tab] admin defaults delete deploy global sandboxes unpack usage versions$ dbdeployer dep[tab]$ dbdeployer deploy [tab][tab] multiple replication single$ dbdeployer deploy s[tab]$ dbdeployer deploy single --b[tab][tab] --base-port= --bind-address=