> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirurobotics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Whoami

Show the principal the CLI is currently authenticated as, and which workspace that principal belongs to.

Use this to confirm a [login](/references/cli/login) or `MIRU_API_KEY` is the identity you expect before running other commands.

### Usage

```bash theme={null}
miru whoami
```

### Examples

<Tabs>
  <Tab title="Login">
    <CodeGroup>
      ```bash Admin theme={null}
      $ miru whoami

      Authenticated as Benjamin
        Type         User
        User Type    Admin
        Auth Source  Token stored by miru login
        Workspace    Acme Robotics
      ```

      ```bash Member theme={null}
      $ miru whoami

      Authenticated as Benjamin
        Type         User
        User Type    Member
        Roles        Publisher, Operator
        Auth Source  Token stored by miru login
        Workspace    Acme Robotics
      ```
    </CodeGroup>
  </Tab>

  <Tab title="API Key">
    ```bash theme={null}
    $ miru whoami

    Authenticated as ci-publish-key
      Type         API Key
      Scopes       releases:write, config_schemas:write, 
      Auth Source  MIRU_API_KEY environment variable
      Workspace    Acme Robotics
    ```
  </Tab>
</Tabs>
