To install OpenStack CLI on Linux, first check if you have pip installed.

Run:

pip install python-openstackclient

Pip will install a binary called openstack in ~/.local/bin If the openstack command is not available in session, you might need to add it to your PATH: export PATH="$HOME/.local/bin:$PATH" Add this to your ~/.zshrc or ~/.bashrc to make sure this happens for each shell session.

And don’t forget to source your updated ~/.zshrc if you chose to add it: source ~/.zshrc

My site is free of ads and trackers. Was this post helpful to you? Why not BuyMeACoffee


Reference:

  1. Install the OpenStack command-line clients