diff options
| author | Zuul <zuul@review.opendev.org> | 2025-09-17 14:10:38 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2025-09-17 14:10:38 +0000 |
| commit | 6f564d37bbbeb8a720a76ffffa189de7eeb917ca (patch) | |
| tree | 393607e06ff4c06bfe3c42938c5daf442d6cbe48 /doc/source/user | |
| parent | 313da90592d836e631b561e3f8cf15b4888e4b9d (diff) | |
| parent | 649abef5a4a9a3a1975a65ff558f681ff3243f26 (diff) | |
| download | kolla-ansible-6f564d37bbbeb8a720a76ffffa189de7eeb917ca.tar.gz kolla-ansible-6f564d37bbbeb8a720a76ffffa189de7eeb917ca.zip | |
Merge "Add documentation for Kolla Ansible CLI command completion"
Diffstat (limited to 'doc/source/user')
| -rw-r--r-- | doc/source/user/operating-kolla.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/source/user/operating-kolla.rst b/doc/source/user/operating-kolla.rst index e4eca00c2..412b8dbd5 100644 --- a/doc/source/user/operating-kolla.rst +++ b/doc/source/user/operating-kolla.rst @@ -198,6 +198,36 @@ After this command is complete, the containers will have been recreated from the new images and all database schema upgrades and similar actions performed for you. + +CLI Command Completion +~~~~~~~~~~~~~~~~~~~~~~ + +Kolla Ansible supports shell command completion to make the CLI easier to use. + +To enable Bash completion, generate the completion script: + +.. code-block:: console + + kolla-ansible complete --shell bash > ~/.kolla_ansible_completion.sh + +Then, add the following line to your ``~/.bashrc`` file: + +.. code-block:: console + + source ~/.kolla_ansible_completion.sh + +Finally, reload your shell configuration: + +.. code-block:: console + + source ~/.bashrc + +.. note:: + + If you're using a shell other than Bash, replace ``--shell bash`` with your shell type, + e.g., ``zsh``, and adapt your shell's configuration file accordingly. + + Tips and Tricks ~~~~~~~~~~~~~~~ |
