# コマンダーSDKを使用したCLIのプロビジョニング

Keeperでは、PythonベースのKeeperコマンダーSDKを使用した、APIベースのプロビジョニングに対応しています。以下の事例で活用できます。

* Keeperボルトへのコマンドラインアクセス
* レポート生成
* パスワード、フォルダ、共有フォルダのインポート
* ユーザーやチームのプロビジョニング
* レコードをユーザーへチームにプッシュ
* ユーザーやチームとレコードやフォルダを共有
* 目的のパスワードローテーションの実行
* シークレットマネージャーとKeeper PAMの管理

KeeperコマンダーはオープンソースのSDKであり、Pythonで記述されているため、必要に応じてカスタマイズし、バックエンドシステムに統合できます。

コマンダーについては以下のページをご参照ください。

* [コマンダーCLI](/keeperpam/jp/commander-cli/overview.md)
* [コマンダーSDK](/keeperpam/jp/commander-sdk/keeper-commander-sdks.md)

### コマンドラインの使用

コマンダーのコマンドラインインターフェースとインタラクティブシェルでは、Keeperボルトのアクセスや制御など、多くの管理操作を実行できます。使用可能なすべてのコマンドを確認するには、以下のように入力します。

```
$ keeper

usage: keeper [--server SERVER] [--user USER] [--password PASSWORD]
              [--version] [--config CONFIG] [--debug]
              [command] [options [options ...]]

positional arguments:
  command               Command
  options               Options

optional arguments:
  --server SERVER, -ks SERVER
                        Keeper Host address.
  --user USER, -ku USER
                        Email address for the account.
  --password PASSWORD, -kp PASSWORD
                        Master password for the account.
  --version             Display version
  --config CONFIG       Config file to use
  --debug               Turn on debug mode
```

### インタラクティブシェル

コマンドを実行したりログイン状態を維持するのにコマンダーのインタラクティブシェルを使用できます。

```
$ keeper shell

  _  __
 | |/ /___ ___ _ __  ___ _ _
 | ' </ -_) -_) '_ \/ -_) '_|
 |_|\_\___\___| .__/\___|_|
              |_|

 password manager & digital vault

Logging in...
Syncing...
Decrypted [400] Records

My Vault>
```

`h`と入力すると、すべてのコマンドとヘルプ情報が表示されます。

### Keeperのコマンドリファレンス

コマンダーにはさまざまな機能があります。 以下は、ユーザーやチームのプロビジョニングに関連したコマンドとなります。

* create-user
* enterprise-info
* enterprise-node
* enterprise-user
* enterprise-role
* enterprise-team
* enterprise-push
* team-approve
* transfer-user
* scim
* automator

コマンダーでユーザーアカウントを作成するには、以下の2つの方法があります。

* `enterprise-user --add`コマンドでユーザーをエンタープライズに招待します。
* `create-user` コマンドで新しいユーザーアカウントとボルトを作成します。

コマンダーで使用できる全コマンドの詳細については以下のページをご覧ください。

* [Keeperコマンドリファレンス](/keeperpam/jp/commander-cli/command-reference.md)


---

# 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/enterprise-guide/jp/user-and-team-provisioning/cli-provisioning-with-commander-sdk.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.
