Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

command line completion

Giuseppe Maxia edited this page Nov 6, 2020 · 2 revisions

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_completion

There is a dbdeployer command that does all the above for you:

dbdeployer defaults enable-bash-completion --remote --run-it

When 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=
Clone this wiki locally