Sign out
Use leaf logout to terminate your session and clear saved tokens from your local machine.
Sign out command
Section titled “Sign out command”Run leaf logout:
leaf logoutOutput:
Logged out.What happens during logout
Section titled “What happens during logout”- The CLI calls the LeafCloud API to invalidate the current authentication session on the server.
- The local credentials file (
~/.config/leaf/credentials.json) is securely deleted. - If authentication was provided via the
LEAF_TOKENenvironment variable, the server session is revoked, but the local environment variable remains unchanged.
With --json:
leaf logout --json{ "schema": 1, "logged_out": true}