Skip to main content
The logout command removes your stored API token from the CLI configuration, ending the authenticated session. Aliases: signout

Usage

nt3 logout [options]

Options

OptionDescription
-l, --localRemove token from .nt3.local.json (project-scoped) instead of the global config.

Global Logout (Default)

Removes the API token from ~/.nt3/config.json:
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:
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 after logging out.

Re-Authenticating

After logging out, run nt3 login to authenticate again:
nt3 login
See nt3 login for details.