logout command removes your stored API token from the CLI configuration, ending the authenticated session.
Aliases: signout
Usage
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:
Local Logout
Removes the API token from.nt3.local.json in the current directory:
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 after logging out.
Re-Authenticating
After logging out, runnt3 login to authenticate again: