> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/1password/test-shell-plugins.md).

# シェルプラグインをテストする

### **シェルプラグインをテストする** <a href="#id-46mu5zrswdm1" id="id-46mu5zrswdm1"></a>

現在のワークフローに変更を加えずに、[1Password Shellプラグイン](https://developer.1password.com/docs/cli/shell-plugins/)をテストできます。

これを行うには、現在のターミナルセッションの期間のみ有効なデフォルトの資格情報を使ってシェルプラグインを設定します。次に、それをシェルプロファイルに追加するのではなく、現在のターミナルセッションでシェルプラグインのエイリアススクリプトをソースします。ターミナルウィンドウを閉じると、一時的なシェルプラグイン設定がクリアされます。

### **ステップ 1：一時的にシェルプラグインを設定する** <a href="#puhloutd4bdz" id="puhloutd4bdz"></a>

1. シェル プラグインで使う資格情報がSaveされている 1Password アカウントにサインインします。\
   $ op signin
2. テストするプラグインを選択するか、op plugin initを実行して利用可能な全プラグインのリストから選択します。例えばAWS シェル プラグインをテストするには、次のようにします。\
   $ op plugin init aws
3. プラグインでテストする資格情報をインポートまたは選択します。
4. 認証に資格情報を使うタイミングを選択するよう求められたら、\[新しいターミナル セッションごとに確認する]を選択します。これにより、現在のターミナル セッションの間、資格情報が一時的なデフォルトとして設定されます。
5. plugins.shシェル プロファイルにファイルをソースするコマンドを追加する代わりに、plugins.sh現在のターミナル セッションでファイルをソースします。これにより、現在のターミナル セッションの期間中有効な CLI 実行可能ファイルのエイリアスがCreateされます。\
   例:\
   $ source \~/.config/op/plugins.sh\
   plugins.shファイルの場所は[設定ディレクトリー](https://developer.1password.com/docs/cli/config-directories/)によって異なります。

### **ステップ2：シェルプラグインをテストする** <a href="#cmqqtd1zrxrp" id="cmqqtd1zrxrp"></a>

現在のターミナルセッション中でシェルプラグインをテストできます。

1. 1Password CLIからサインアウトして、認証を求めるプロンプトが表示されることを確認します。\
   $ op signout
2. 認証が必要な CLI コマンドを実行します。例えばAWS のシェル プラグインを設定した場合、次のように入力します。\
   $ aws s3 ls

テストが完了したら、ターミナルウィンドウを閉じてデフォルトの資格情報をクリアし、CLI 実行可能ファイルのエイリアスを削除します。\
シェルプラグインを引き続き使うには、[選択したプラグイン](https://developer.1password.com/docs/cli/shell-plugins/)のインストールガイドに従ってください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://manual.dxable.com/1password/test-shell-plugins.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.
