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

# signin

1Password デスクトップ アプリを使用して 1Password CLI にサインインします。

```
$ op signin [flags]
```

#### **Flags** <a href="#id-1hpwctu9pog6" id="id-1hpwctu9pog6"></a>

```
-f, --force   Ignore warnings and print raw output from this command.
    --raw     Only return the session token.
```

1Password アプリの統合をオンにするには:

1. 1Password アプリを開きます。
2. **Settings > Security**に移動し、Touch ID、Windows Hello、または Linux システム認証オプションをオンにします。
3. **Developer > Settings**に移動し、**Integrate with 1Password CLI**を選択します。

[アプリの統合について詳しくはこちらをご覧ください。](https://developer.1password.com/docs/cli/app-integration/)

1Password アプリに複数の 1Password アカウントを追加すると、1Password CLI は次の順序で使うアカウントを決定します。

1. `--account`フラグで指定されたアカウント。
2. `OP_ACCOUNT`環境変数によって指定されたアカウント。
3. 任意のターミナル ウィンドウ内で最後に`op signin`サインインしたアカウント。

`op signin`はべき等です。まだ認証されていない場合にのみ認証を求めます。

#### [**例**](https://developer.1password.com/docs/cli/reference/commands/signin/#examples) <a href="#j43athoaecwd" id="j43athoaecwd"></a>

サインインして環境変数を 1 つの手順で設定します。

```
$ eval $(op signin --account acme.1password.com)
```
