> For the complete documentation index, see [llms.txt](https://docs.platform9.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform9.com/managed-openstack/5.8/cli-access/cli-access-install-cli-ubuntu.md).

# Installing OpenStack CLI Client on Ubuntu 18.04

Before you install OpenStack CLI, you must install Python and the required compiler packages on Ubuntu.

Follow the steps given below to install Python and the required compiler packages.

1. Update the list of available packages.

{% tabs %}
{% tab title="Shell" %}

```bash
apt-get -y update
```

{% endtab %}
{% endtabs %}

2. Install GNU compiler library (GCC), Python, and the dependent libraries.

{% tabs %}
{% tab title="Shell" %}

```bash
apt-get -y install gcc libffi-dev libssl-dev python python-dev python-virtualenv virtualenvwrapper
```

{% endtab %}
{% endtabs %}

## Install OpenStack CLI

Follow the steps given below to install OpenStack CLI on a Ubuntu 18.04 host.

3. Load virtualenv variables.

{% tabs %}
{% tab title="Shell" %}

```bash
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
```

{% endtab %}
{% endtabs %}

4. Create a virtual environment.

{% tabs %}
{% tab title="Shell" %}

```bash
mkvirtualenv os_cli
```

{% endtab %}
{% endtabs %}

5. Upgrade pip to the latest version.

{% tabs %}
{% tab title="Shell" %}

```bash
pip install pip --upgrade
```

{% endtab %}
{% endtabs %}

6. Run following command to set up OpenStack CLI.

{% tabs %}
{% tab title="Shell" %}

```bash
pip install --upgrade --requirement https://raw.githubusercontent.com/platform9/support-locker/master/openstack-clients/requirements.txt --constraint https://raw.githubusercontent.com/openstack/requirements/stable/train/upper-constraints.txt
```

{% endtab %}
{% endtabs %}

OpenStack CLI is successfully installed, and ready to be used on the Ubuntu host.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.platform9.com/managed-openstack/5.8/cli-access/cli-access-install-cli-ubuntu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
