> 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/account.md).

# accountコマンド

サブコマンド

* [account add](https://developer.1password.com/docs/cli/reference/management-commands/account/#account-add)：初めてサインインするアカウントを追加します。
* [account forget](https://developer.1password.com/docs/cli/reference/management-commands/account/#account-forget)：対象のデバイスから1Passwordアカウントを削除します。
* [account get](https://developer.1password.com/docs/cli/reference/management-commands/account/#account-get)：アカウントの詳細を取得します。
* [account list](https://developer.1password.com/docs/cli/reference/management-commands/account/#account-list)：対象のデバイスに設定されているユーザーとアカウントを一覧表示します。<br>

### account add <a href="#id-7dxesaq594c3" id="id-7dxesaq594c3"></a>

1Passwordアプリを使ってサインインする代わりに、アカウントパスワードと秘密鍵を使って、新しい1Passwordアカウントを1Password CLIに手動で追加します。

$ op account add \[flags]

フラグ

\--address string アカウントのサインインアドレスを指定する

\--email string アカウントに付随するeメールアドレスを指定する

\--raw セッショントークンだけを返す

\--shorthand string アカウントのカスタムな省略形を設定する

\--signin 追加したアカウントにすぐにサインインする

手動で追加されたアカウントにサインインするには：\
Bash、Zsh、sh、fishの場合\
$ eval $(op signin)

PowerShellの場合

PS C:¥> Invoke-Expression $(op signin)

[手動でサインインする方法の詳細はこちらでご覧ください](https://developer.1password.com/docs/cli/sign-in-manually/)。<br>

手動でサインインすると、1Password CLIはセッショントークンをCreateし、OP\_SESSION環境変数をそれに設定します。セッショントークンは30分間操Createがないと期限切れになり、その後は再度サインインする必要があります。複数の1Passwordアカウントを追加した場合、1Password CLIは次の順序で使うアカウントを決定します。

①--accountフラグで指定されたアカウント。

②OP\_ACCOUNT環境変数で指定されたアカウント。

③現在のターミナルウィンドウでop signinを使って最後にサインインしたアカウント。

例

フラグを使ってアカウントの詳細を指定し、アカウントを追加します。

$ op account add --address my.1password.com --email <user@example.org>

\
アカウントを追加してすぐにサインインするには：\
Bash、Zsh、sh、fishの場合

$ eval $(op account add --signin)

\
PowerShellの場合

PS C: \\> ​​Invoke-Expression $(op account add --signin)

特定のアカウントにサインインするには：

Bash、Zsh、sh、fishの場合

$ eval $(op signin --account my)

PowerShellの場合

PS C: \\> Invoke-Expression $(op signin --account my)

### account forget <a href="#qsxcsf1yaw7d" id="qsxcsf1yaw7d"></a>

対象のデバイスから1Passwordアカウントを除去します。

op account forget \[ \<account> ] \[flags]

フラグ

\--all 全ての認証済みアカウントを除去します。

### account get <a href="#mdpqxa386j1j" id="mdpqxa386j1j"></a>

アカウントの詳細を取得します。

op account get \[flags]

### account list <a href="#id-4ytqkwlqbq06" id="id-4ytqkwlqbq06"></a>

対象のデバイスに設定されているユーザーとアカウントを一覧表示します。

op account list \[flags]


---

# 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/account.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.
