The OpenStackClient project is provided with a unified CLI client so that users can make calls to desired project APIs by running commands easily. Most OpenStack projects have a dedicated CLI client for each service. For example, the compute service is provided with the Nova CLI client. For details, see https://docs.openstack.org/user-guide/common/cli-overview.html.
You can install and use OpenStackClient by executing the python-openstackclient plug-in. Therefore, before using the tool, ensure that python-openstackclient is running properly.
This tool can be used in all operating systems (OSs) if Python is running properly. The Ubuntu 14.04 OS is recommended. The operations all use Ubuntu 14.04 as an example.
Install Python and pip based on the OS in use. Python 2.7.12 and versions later than Python 3.4 are supported.
Generally, Ubuntu 14.04 consists of Python 2.7.12. If Python has not been deployed, run the following command to deploy it:
sudo apt-get install python
Run the following command to install pip:
sudo apt-get install python-pip
Run the following command to install Dev:
Sudo apt-get install python-dev
The following python-openstackclient versions are supported by default:
Run the following command to install python-openstackclient using pip:
pip install python-openstackclient
For details on how to install python-openstackclient, see https://github.com/openstack/python-openstackclient.
After the installation is complete, verify its installation: Run the openstack –h command to check whether the help information is displayed.