# LinuxでのCLIインストール

### **対応オペレーティングシステム** <a href="#supported-operating-systems" id="supported-operating-systems"></a>

* Ubuntu (最新リリースおよび最新LTSリリース)
* CentOS (最新)
* RedHat、Rocky (最新)

## 概要動画

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

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

## **手順** <a href="#instructions" id="instructions"></a>

#### Pythonのインストール <a href="#installing-python" id="installing-python"></a>

ご使用のディストリビューションに基づいたPython 3.xのインストール手順に従ってください。以下は一般的なインストールコマンドとなります。

```
sudo apt install python3
```

または

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

次に、「Python用パッケージインストーラー」がインストールされていることを確認します (最初にapt-get updateを実行する必要がある場合もあります)。

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

または

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

以下のコマンドを使用してpip3を最新バージョンにアップグレードします。

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

***

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

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

```
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/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
```

***

### ログイン

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

```
keeper shell
```

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

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

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

***

### アップグレード

アップデートは毎週リリースされています。以下のコマンドで、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/keeperpam/jp/commander-cli/commander-installation-setup/installation-on-linux.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.
