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

# idyl logout

> Log out from IDYL

Log out from IDYL by revoking the CLI session and removing local credentials.

This command:

1. Revokes the stored refresh token for your identity
2. Clears all cached access tokens for your identity
3. Removes contexts that reference this identity

## Usage

```bash theme={null}
idyl logout [flags]
```

## Flags

| Flag               | Description                                                 |
| ------------------ | ----------------------------------------------------------- |
| `--all`            | Log out from all realms and identities.                     |
| `--email <string>` | Email address to log out. Defaults to the current identity. |
| `--realm <string>` | Realm to log out from. Defaults to the current realm.       |

## Inherited flags

| Flag                                 | Description                                                        |
| ------------------------------------ | ------------------------------------------------------------------ |
| `-a <string>, --account-id <string>` | Account ID to use, overriding the current context.                 |
| `-c <string>, --context <string>`    | Use the named context for this command.                            |
| `--homedir <string>`                 | Override the configuration directory. Defaults to \~/.config/idyl. |
| `-n <string>, --namespace <string>`  | Namespace to use for this command.                                 |
| `-o <string>, --output <string>`     | Output format (json\|yaml).                                        |
| `-p <string>, --profile <string>`    | Override the access profile for this command.                      |
| `--subnet <string>`                  | Override the context subnet for this command.                      |

## Examples

```bash theme={null}
# Log out from the current context's identity
idyl logout

# Log out a specific identity from a realm
idyl logout --email developer@example.com --realm idyl.network

# Log out from all realms and identities
idyl logout --all
```
