# 1Password CLI

### **1Password CLI** <a href="#iz7hqgflj524" id="iz7hqgflj524"></a>

1Password CLIは、1Passwordをあなたのターミナルから操作できるようにします。あなたのフィンガープリントで1Password CLIにサインインし、開発中に必要なもの全てに安全にアクセスできるようにします。

### **利用例** <a href="#vk1dkrcziat5" id="vk1dkrcziat5"></a>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td>シークレットの参照</td><td>コード内に残る平文のままのシークレットを排除する</td><td>必要な場所に1Passwordからシークレットを挿入します。</td><td><a href="https://developer.1password.com/docs/cli/use-cases#secrets">もっと詳しく知る</a></td></tr><tr><td>ワークフローの自動化</td><td>管理タスクを自動化する</td><td>スクリプトを使ってアイテムを管理し、大規模にチームメンバーをプロビジョニングします。</td><td><a href="https://developer.1password.com/docs/cli/use-cases#automate">もっと詳しく知る</a></td></tr><tr><td>シェルプラグイン</td><td>フィンガープリントを使ってCLIにサインイン</td><td>お気に入りのCLIのAPIキーを1Passwordに保存できます。</td><td><a href="https://developer.1password.com/docs/cli/use-cases#shell-plugins">もっと詳しく知る</a></td></tr></tbody></table>

### [**1Password CLIを使い始める​**](https://developer.1password.com/docs/cli/get-started/) <a href="#htyv098k4zvu" id="htyv098k4zvu"></a>

1Password CLIを初めてインストールする場合は、[ここから](https://developer.1password.com/docs/cli/get-started/)始めてください。

以前のバージョンの1Password CLIを使っている場合は、[アップグレードの方法を確認して最新バージョンにしてください](https://developer.1password.com/docs/cli/upgrade/)。

{% hint style="warning" %}
1Password CLI 1を使っている場合

1Password CLI 1は、2024年10月1日に廃止されました。中断なくアクセスして最新機能との互換性を維持するには、1Password CLI 2にアップグレードしてください。
{% endhint %}

### **ガイド​** <a href="#id-7rrhidli0yua" id="id-7rrhidli0yua"></a>

#### **アイテムとユーザーの管理** <a href="#y3p31zdfper6" id="y3p31zdfper6"></a>

* [アイテムをCreateおよび取得します。](https://developer.1password.com/docs/cli/item-create/)
* [チームメンバーを追加および削除します。](https://developer.1password.com/docs/cli/provision-users/)
* [チームメンバーのVault権限を管理します。](https://developer.1password.com/docs/cli/grant-revoke-vault-permissions/)
* [チームメンバーのグループ権限を管理します。](https://developer.1password.com/docs/cli/reference/management-commands/group/)

#### **プロビジョニングシークレット​** <a href="#t3mbjc3u4ud1" id="t3mbjc3u4ud1"></a>

* [コード内のシークレットには、平文のシークレットではなく、シークレット参照を使ってアクセスします。](https://developer.1password.com/docs/cli/secret-references/)シークレット参照は、実行時に1Passwordで参照する実際のシークレットに置き換えられます。
* コード内に平文のシークレットを配置することなく、[環境からアプリケーションにシークレットを安全に読み込みます。](https://developer.1password.com/docs/cli/secrets-environment-variables/)
* コード内に平文のシークレットを配置せずに、[シークレットを設定ファイルに安全に読み込みます。](https://developer.1password.com/docs/cli/secrets-config-files/)

#### **生体認証による認証** <a href="#id-9m59s9wp09yr" id="id-9m59s9wp09yr"></a>

* 生体認証で[サードパーティーのCLIを安全に認証するシェルプラグインを使えます。](https://developer.1password.com/docs/cli/shell-plugins/)
* 認証したいCLIがまだサポートされていない場合は、[独自のシェルプラグインを構築できます。](https://developer.1password.com/docs/cli/shell-plugins/contribute/)

#### **1Password CLIを他のツールと併用する** <a href="#id-5qidh2sbaxjl" id="id-5qidh2sbaxjl"></a>

* [1Password for VS Code](https://developer.1password.com/docs/vscode/)を使えば、1Password CLIの機能をVS Codeに導入できます。
* 個人アカウントでSSOやMFAを使っている場合は、[1Passwordサービス アカウント](https://developer.1password.com/docs/service-accounts/get-started#use-a-service-account-with-1password-cli)を使って、1Password CLI がアクセスできるVault（保管庫）を制限したり、自動スクリプトを実行したりすることができます。
* 1Password CLIを備えた[1Password Connect Server](https://developer.1password.com/docs/connect/connect-cli/)を使うと、プライベートなREST APIを使って会社のアプリやクラウドインフラ内のアイテムに安全にアクセスすることができます。
* 1Password CLIと[1Password CI/CD Integarations](https://developer.1password.com/docs/ci-cd/)を使うと、パイプライン内のジョブが1Passwordに保存されているシークレットに安全にアクセスできるようになります。

### **さらに詳しく学ぶには​** <a href="#id-27hcw62qjh77" id="id-27hcw62qjh77"></a>

* 1Password CLIの全コマンドとその使用方法については、完全な[コマンドリファレンス](https://developer.1password.com/docs/cli/reference/)をお読みください。
* [CLIのベストプラクティス](https://developer.1password.com/docs/cli/best-practices)について学んでください。
* [1Passwordアプリの統合](https://developer.1password.com/docs/cli/app-integration/)について学んでください。
* [シェルプラグインのセキュリティーモデル](https://developer.1password.com/docs/cli/shell-plugins/security/)について学んでください。


---

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