> ## Documentation Index
> Fetch the complete documentation index at: https://www.1password.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# account

Manage your locally configured 1Password accounts.

### Subcommands

* [account add](#account-add): Add an account to sign in to for the first time
* [account forget](#account-forget): Remove a 1Password account from this device
* [account get](#account-get): Get details about your account
* [account list](#account-list): List users and accounts set up on this device

## account add

Add a new 1Password account to 1Password CLI manually with your account password
and Secret Key, instead of [signing in using your 1Password app](/cli/app-integration/).

```shell theme={null}
op account add [flags]
```

### Flags

```
--address string     The sign-in address for your account.
--email string       The email address associated with your account.
--raw                Only return the session token.
--shorthand string   Set a custom account shorthand for your account.
--signin             Immediately sign in to the added account.
```

To sign in to manually-added accounts:

<Tabs groupId="operating-systems">
  <Tab title="Bash, Zsh, sh, fish">
    ```shell theme={null}
    eval $(op signin)
    ```
  </Tab>

  <Tab title="PowerShell">
    ```powershell theme={null}
    Invoke-Expression $(op signin)
    ```
  </Tab>
</Tabs>

[Learn more about signing in manually.](/cli/sign-in-manually/)

When you sign in manually, 1Password CLI creates a session token and
sets the `OP_SESSION` environment variable to it. Session tokens expire
after 30 minutes of inactivity, after which you’ll need to sign in again.
If you add multiple 1Password accounts, 1Password CLI determines which
to use in this order:

1. An account specified with the `--account` flag.
2. An account specified with the `OP_ACCOUNT` environment variable.
3. The account most recently signed in to with `op signin` in the current
   terminal window.

### Examples

Add an account using flags to specify account details:

```shell theme={null}
op account add --address my.1password.com --email user@example.org
```

Add an account and immediately sign in to it:

<Tabs groupId="operating-systems">
  <Tab title="Bash, Zsh, sh, fish">
    ```shell theme={null}
    eval $(op account add --signin)
    ```
  </Tab>

  <Tab title="PowerShell">
    ```powershell theme={null}
    Invoke-Expression $(op account add --signin)
    ```
  </Tab>
</Tabs>

Sign in to a specific account:

<Tabs groupId="operating-systems">
  <Tab title="Bash, Zsh, sh, fish">
    ```shell theme={null}
    eval $(op signin --account my)
    ```
  </Tab>

  <Tab title="PowerShell">
    ```powershell theme={null}
    Invoke-Expression $(op signin --account my)
    ```
  </Tab>
</Tabs>

## account forget

Remove a 1Password account from this device.

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

### Flags

```
--all    Forget all authenticated accounts.
```

## account get

Get details about your account.

```
op account get [flags]
```

## account list

List users and accounts set up on this device.

```
op account list [flags]
```
