Get started
BETA
Browse docs
CLI Reference

justtunnel logout

Remove the stored API key from the local config file.

Remove the API key from ~/.config/justtunnel/config.yaml. Subsequent commands fall back to the JUSTTUNNEL_AUTH_TOKEN environment variable if it's set, or trigger the device flow again.

If you need to invalidate the key everywhere (lost laptop, compromised CI runner), revoke it from the account dashboard. logout only clears the local copy.

Synopsis

justtunnel logout [flags]

logout takes no arguments.

Examples

Remove the local API key

justtunnel logout
Logged out. API key removed from config.

The next CLI invocation will need to re-authenticate.

Log out and immediately log back in as someone else

justtunnel logout
justtunnel auth

Useful when switching between two GitHub accounts that aren't both members of the same team. For per-team switching without losing your token, use justtunnel context instead.

Flags

No flags.

logout inherits the persistent --config and --context flags from the root command.

Exit codes

CodeMeaning
0Logged out, or no token was present to remove.
1Failure — could not load or write the config file (permission error, malformed config, etc.).

See also

On this page