Getting started with the Fuga Command Line Interface

Getting Started with the Fuga CLI

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:

  1. Log in to your Fuga instance with SSH
  2. Run the following command to update the package index:
    sudo apt-get update
  3. Run the following command to install pip:
    sudo apt-get install python-pip python-dev
  4. 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

  1. Log in to the Fuga Dashboard
  2. Go to Compute —> Access & Security —> API Access
  3. 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.
  4. 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: ~/
  5. Run the following command to use the configuration file
    source ~/
  6. 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

nova list

List your volumes

cinder list

List the images

glance image-list

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.

The latest Fuga news

Enter Fuga Cloud and create your own platform!

deploy Bot


Terms of Use