# CLI Installation on macOS

### **Supported Operating systems**

* Mac OS 10.15 or newer

### 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 Loggin In
{% endembed %}

### Binary installation

On the Commander Github page, the current commander build is always available via the [releases link](https://github.com/Keeper-Security/Commander/releases).

For mac installs download and install the file named: `keeper-commander-mac-vx.xx.pkg`

After installation, type "`keeper shell`" to login.

### Python / PIP3 installation method

Download the current version of Python from: [https://www.python.org/](https://www.python.org/downloads/)

#### 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.

{% code overflow="wrap" %}

```
echo 'export PATH="$HOME/Library/Python/$(python3 -V | cut -d" " -f2 | cut -d"." -f1-2)/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
```

{% 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](/en/keeperpam/commander-cli/commander-installation-setup/logging-in.md) section.

***

#### Upgrading

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

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


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/en/keeperpam/commander-cli/commander-installation-setup/installation-on-mac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
