Skip to content

logout

Log out of Clonit Cloud and clear the stored session.

clonit logout [flags]
Flag Type Default Description
--help, -h bool false Show help for the logout command

This command takes no positional arguments.

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)

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.

Log out and clear the stored session:

clonit logout

A typical interactive login lifecycle:

clonit login # print a code + URL, open the browser, wait for approval
clonit whoami # show the current login
clonit logout # clear the stored session
  • 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