# MacでのCLIインストール

### **対応オペレーティングシステム**

* Mac OS 10.15以降

### 概要動画

Keeperコマンダーのインストールおよびログインの方法については、以下の動画をご覧ください。

{% embed url="<https://vimeo.com/817466747?share=copy>" %}
Keeperコマンダーのインストール
{% endembed %}

## バイナリインストール <a href="#binary-installation-recommended" id="binary-installation-recommended"></a>

コマンダーの最新ビルドは、コマンダーのGithubページの[リリースリンク](https://github.com/Keeper-Security/Commander/releases)からいつでも入手できます。

Macでのインストールの場合は、`keeper-commander-mac-vx.xx.pkg` という名前のファイルをダウンロードしてインストールします。\
\
インストール後、`keeper shell` と入力してログインします。

## Python/PIP3でインストール

<https://www.python.org/>から最新バージョンのPythonをダウンロードします。

### 仮想環境を使用したインストール

システムとの競合を避けるため、仮想環境を使用してセットアップすることを推奨します。

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

その後、以下のコマンドを実行してKeeperコマンダーCLIにログインします。

```
keeper shell
```

***

### 仮想環境を使用しないインストール

仮想環境を使用せずにシステムへインストールする場合は、以下のコマンドを実行します。

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

次に、「keeper」バイナリを使用できるよう、KeeperがPATHに含まれていることを確認します。

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

***

### ログイン

Keeperコマンダーが正しくインストールされていることを確認するには、以下のコマンドでログインします。

```
keeper shell
```

USデータセンターのアカウントにすばやくログインするには、以下のコマンドを使用します。

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

ログイン方法やセッション管理の詳細については、「[ログイン](https://docs.keeper.io/jp/keeperpam/commander-cli/commander-installation-setup/logging-in)」ページをご参照ください。

### アップグレード

アップデートは毎週リリースされています。以下のコマンドで、Keeperコマンダーを最新バージョンにアップデートできます。

```
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/jp/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.
