Configuring CLI autocomplete
The CDP CLI includes a command-completion feature that enables you to use the Tab key to complete a partially entered command. Because the feature is not automatically installed, you must configure it manually.
Locate the CLI completer.
Add the CLI completer folder to your path:
Find the profile script for the shell profile script in your user folder.
Add the following command to your
/usr/local/bin/cdp_completerwith the actual location discovered in the previous sub-step:
complete -C /usr/local/bin/cdp_completer cdp
Reload the profile into the current session to put the changes into effect. Replace
.bash_profilewith the name of the shell script you discovered in the first sub-step:
$ source ~/.bash_profile
- Find the profile script for the shell profile script in your user folder.
cdpand press the Tab key to display the available options for autocomplete.