# snizu whoami

Source: https://snizu.dev/docs/cli/whoami

## Usage [#usage]

```sh title="Usage"
snizu whoami [--json]
```

## Flags [#flags]

<Fields>
<Field name="--json" type="flag">
Print one line of JSON: `partner_id`, `partner_name`, `scopes` and `api_url`.
</Field>
</Fields>

## Examples [#examples]

```shellsession title="Terminal"
$ snizu whoami
Nakhla Studio ptnr_01k8zq3v7m2c4x9d5n0b6t1w8h
This token can deploy apps, push themes, read logs, create development stores.
https://api.snizu.com
```

In a script, read the JSON:

```shellsession title="Terminal"
$ snizu whoami --json
{"partner_id":"ptnr_01k8zq3v7m2c4x9d5n0b6t1w8h","partner_name":"Nakhla Studio","scopes":["apps:deploy","themes:push","logs:read","stores:create"],"api_url":"https://api.snizu.com"}
```

The token is `SNIZU_TOKEN` when it's set, otherwise the one `snizu login` saved. Without either, the command stops with "Not signed in. Run `snizu login`, or set SNIZU_TOKEN to a Partner API token."