> 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/1password-cli-best-practices.md).

# 1Password CLIのベストプラクティス

1Password CLI を使うと、1Password を端末で利用できるようになります。以下は、1Password CLI を使う際に推奨されるベスト プラクティスです。

### **1Password CLIの最新バージョンを使う** <a href="#tkipe489j675" id="tkipe489j675"></a>

適切なソフトウェア更新を実践し、1Password CLIを[最新バージョン](https://app-updates.agilebits.com/product_history/CLI2)に定期的に更新してください。

[op update](https://developer.1password.com/docs/cli/reference/commands/update)で利用可能なアップデートを確認できます。

### **インフラのシークレットに最小権限の原則を適用する** <a href="#gdb7vbqprcvo" id="gdb7vbqprcvo"></a>

[1Password Service Accounts](https://developer.1password.com/docs/service-accounts)を使うと、[最小権限の原則](https://csrc.nist.gov/glossary/term/least_privilege)に従うことができ、特定の目的のために必要な項目のみに1Password CLIアクセスを制限することができます。

シークレット管理ユースケースに適切にスコープ設定されたサービスアカウントで専用のVaultを使用します。必要以上のVaultへのアクセスを許可しないでください。

[最小権限の原則を使ってグループとVaultの権限を管理する方法](https://support.1password.com/business-security-practices/#access-management-and-the-principle-of-least-privilege)について詳しく学習しましょう。

### **機密値を含むアイテムをCreateするときはテンプレートファイルを使う** <a href="#jks9j2pkx0xy" id="jks9j2pkx0xy"></a>

op item createを使ってアイテムをCreateするときは、機密性の高い値を入力するためにJSONテンプレートを使うことをお勧めします。


---

# 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/1password-cli-best-practices.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.
