# getstream logout

{/*cli-reference: generated by scripts/cli-reference.mjs from `getstream logout --help` (Stream CLI 0.0.0-local). Edit only inside the custom blocks; everything else is overwritten on the next run.*/}

Ends the session on this device.

Logging out of a guest account discards it and requires confirmation;
`--force` skips the prompt.

{/*custom:intro*/}
{/*/custom:intro*/}

```sh
getstream logout [flags]
```

## Flags

| Flag          | Description                                                 |
| ------------- | ----------------------------------------------------------- |
| `-f, --force` | log out without confirmation (guest accounts are discarded) |

## Global flags

| Flag        | Description                               |
| ----------- | ----------------------------------------- |
| `--verbose` | print API requests and full error details |

{/*custom:notes*/}
{/*/custom:notes*/}

---

For the most recent version of this documentation, visit [https://getstream.io/cli/docs/commands/logout/](https://getstream.io/cli/docs/commands/logout/).