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

# nt3 logout

> Remove stored credentials and log out of Entri.

The `logout` command removes your stored API token from the CLI configuration, ending the authenticated session.

**Aliases:** `signout`

## Usage

```bash theme={null}
nt3 logout [options]
```

## Options

| Option        | Description                                                                        |
| ------------- | ---------------------------------------------------------------------------------- |
| `-l, --local` | Remove token from `.nt3.local.json` (project-scoped) instead of the global config. |

## Global Logout (Default)

Removes the API token from `~/.nt3/config.json`:

```bash theme={null}
nt3 logout
# Logged out successfully. Token removed from ~/.nt3/config.json
```

This affects all projects on the machine since the global config is shared.

## Local Logout

Removes the API token from `.nt3.local.json` in the current directory:

```bash theme={null}
nt3 logout --local
# Logged out. Token removed from .nt3.local.json
```

Use this when you have a project-scoped token set via `nt3 login --local` and want to remove only that token without affecting the global credentials.

## Behavior Details

* If no token is found, the command exits cleanly with a message rather than an error.
* Other configuration values (such as `api_url`) are preserved — only the token is removed.
* The command does **not** call the Entri API to revoke the token server-side. To fully invalidate a token, [revoke it via the dashboard or API](/developers/api-tokens) after logging out.

## Re-Authenticating

After logging out, run `nt3 login` to authenticate again:

```bash theme={null}
nt3 login
```

See [nt3 login](/developers/cli/login) for details.
