In this tutorial, we’ll explain how you can start using the command line interface (CLI) to control your Fuga environment. To do so, you’ll need to install the OpenStack CLI clients.
The easiest way to get up and running with the OpenStack CLI clients is to install them on a Fuga instance with Linux (we use Ubuntu or Debian in this example). Don’t know how this works? Check out our tutorial on how to get started with Fuga.
Install the OpenStack CLI clients
Once you have deployed a Fuga Linux instance, follow these steps install the OpenStack CLI clients on it:
- Log in to your Fuga instance with SSH
- Run the following command to update the package index:
sudo apt-get update
- Run the following command to install pip:
sudo apt-get install python-pip python-dev
- The OpenStack CLI clients consists of several clients for various parts of OpenStack. The following command will install several OpenStack CLI clients:
sudo pip install python-openstackclient
If you use a different Linux distribution other than Ubuntu or Debian, these instructions might be slightly different (use
yum instead of
apt-get, for example).
Configure the OpenStack CLI clients
- Log in to the Fuga Dashboard
- Go to Compute —> Access & Security —> API Access
- Click on download OpenStack RC file. This file contains all necessary configurations for the clients. You should open and edit this file with a text editor.
- Now copy the contents of this file and paste this in a new text file on the machine where you have installed the OpenStack CLI clients, for example: ~/.fuga-openrc.sh
- Run the following command to use the configuration file
- Enter your Fuga password
Use the Fuga CLI
You have now installed and configured the OpenStack CLI clients and you can start using the Fuga CLI.
The following are some examples you can try. For more commands check out OpenStack command-line clients.
List your instances
List your volumes
List the images
Install the CLI tools on Windows or Mac OS X
If you want to install the Openstack CLI clients on a Windows or Mac OS X operating system, you can check out the following guides:
Enjoy working the CLI tools! For questions, please don’t hesitate to contact us.