# CLI Installation on Linux

### **Supported Operating systems:** <a href="#supported-operating-systems" id="supported-operating-systems"></a>

* Ubuntu and variants (Current release and latest LTS release)
* CentOS (Current)
* RedHat, Rocky (Current)

### Video Overview

Watch the video below to learn how to install and log in to Keeper Commander.

{% embed url="<https://vimeo.com/677799220>" %}
Keeper Commander – Installing and Logging In
{% endembed %}

### **Instructions** <a href="#instructions" id="instructions"></a>

#### Installing Python: <a href="#installing-python" id="installing-python"></a>

‌Based on your distribution, follow the instructions to install Python 3.x, typical installation commands are listed below.

```
sudo apt install python3
```

OR

```
sudo yum install -y python3
```

Next, ensure the "Package installer for Python" is installed (you may need to run an apt-get update first):

```
sudo apt install python3-pip
```

OR

```
sudo yum install -y python3-pip
```

Upgrade pip3 to the latest version using the command:

```
sudo pip3 install --upgrade pip
```

#### Installation with Virtual Environment

Best practice is to set up a virtual environment to avoid system conflicts

```
python3 -m venv keeper-env
source keeper-env/bin/activate
pip install keepercommander
```

Then login to the Keeper CLI using:

```
keeper shell
```

***

#### Installation without a Virtual Environment

To install on the system without a virtual environment:

```
pip3 install --user keepercommander
```

Next, ensure Keeper is in the PATH so that the "keeper" binary is available. Adjust this as needed.

{% code overflow="wrap" %}

```
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
```

{% endcode %}

***

#### Logging In

To validate Keeper Commander is properly installed, login:

```
keeper shell
```

To quickly login to your account on the US data center, use the following command:

```
login user@company.com
```

For detailed login and session management instructions, see the [Logging In](https://docs.keeper.io/en/keeperpam/commander-cli/commander-installation-setup/logging-in) section.

***

#### Upgrading

We release updates weekly. You can update to the latest version of Commander by typing:

```
pip3 install --upgrade keepercommander
```
