The OpenStack CLI tools enable you to experience the full set of our OpenStack Services. The OpenStack command line client is written in Python. So you will need to have Python installed to get started. If this is not the case, you can get it from here.
1. Download and install the OpenStack CLI Tools
You install the OpenStack CLI tools from PyPI using pip
pip install python-openstackclient
And that's it.
You can now start all your OpenStack commands with:
e.g. by typing
you will see the whole set of available OpenStack commands.
2. Download your environment file
- Login to the Meshpanel with your user credentials.
- Create a new project or choose an existing project from your project list.
- In the Services Menu, navigate to Tools/CLI Access.
- Download the provided environment file for your operating system.
The environment file contains all the information that you need to authorize against the OpenStack CLI, like the URL, your credentials, the project you want to access and so on.
3. Authenticate against the OpenStack CLI
- Within your PowerShell or Terminal navigate to the folder that contains the downloaded environment file.
- Use the code snippets available in the Meshpanel to source your file. They are already customized to your project and location. It will be something like
openstack token issue.
- You will be asked to enter your federation password (the one you use to login to Meshpanel as well).
- You can try the following command to confirm that your authentication was successful:
openstack server list.
- Congratulations. You are now ready to get going.
You just have to run through all these steps the first time you access OpenStack via the CLI. Keep your environment file for future accesses. You will have to source it again to reconnect to OpenStack next time. If you are aiming to use the CLI for the deployment of Heat scripts, you need to create an OpenStack Service User and use the according rc file for the authentication in the CLI.