> ## 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
```

丢弃当前服务端的本地凭据，并在服务端吊销 refresh token。部署配了 Redis 的话，
access token 会立即失效，而不是等到自然过期。

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

同时登录了多套部署时，用它登出指定的那一套。

## `sf logout`

Log out

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

| 选项               | 说明                                                 |
| ---------------- | -------------------------------------------------- |
| `--server`, `-s` | Which StarForge address (default: the current one) |
