logout
Log out of Clonit Cloud and clear the stored session.
clonit logout [flags]Arguments & Flags
Section titled “Arguments & Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--help, -h |
bool | false |
Show help for the logout command |
This command takes no positional arguments.
Global Flags
Section titled “Global Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--config |
string | ~/.config/clonit/config.yaml |
Path to the config file |
--debug |
bool | false |
Enable debug logging |
--quiet |
bool | false |
Suppress non-essential output |
--width |
int | 0 |
Table output width (0 = auto-detect terminal width) |
Description
Section titled “Description”clonit logout ends the interactive Clonit Cloud login session created by
login and removes the stored credentials.
Interactive clonit login sessions are stored in
~/.config/clonit/credentials.json (mode 0600), separate from config.yaml.
This file holds the access and refresh tokens obtained through the OAuth 2.0
Device Authorization Grant. Running logout clears that stored session so the
agent is no longer authenticated against Clonit Cloud.
This command affects only the interactive login session. It does not modify the
cloud.api_key configured in config.yaml, which CI/CD and other headless
automation use to authenticate. To verify whether an interactive session is
currently active, use whoami.
Examples
Section titled “Examples”Log out and clear the stored session:
clonit logoutA typical interactive login lifecycle:
clonit login # print a code + URL, open the browser, wait for approvalclonit whoami # show the current loginclonit logout # clear the stored sessionSee Also
Section titled “See Also”- login – Log in to Clonit Cloud via your browser (OAuth device grant)
- whoami – Show the current Clonit Cloud login
- Clonit Cloud – Optional cloud extension for team collaboration and sharing