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

# sf logout

> Log out

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
sf logout
```

Discards the stored credentials for the current server and revokes the refresh token on the server
side. On a deployment with Redis configured, the access token stops working immediately rather than
at expiry.

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
sf logout --server https://starforge.other-team.com
```

Logs out of one specific deployment when you are signed in to several.

## `sf logout`

Log out

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
sf logout [options]
```

| Option           | Description                                        |
| ---------------- | -------------------------------------------------- |
| `--server`, `-s` | Which StarForge address (default: the current one) |
