Skip to main content

CLI Commands

logout

The logout command removes your Cogni+ authentication session.

Usage

cogni logout [OPTIONS]

Description

The logout command removes any stored authentication cookies and tokens from your Cogni+ CLI configuration. After running this command, you’ll need to use cogni login again before you can use commands that require authentication. This is useful when:
  • You want to switch to a different user account
  • You’re using a shared or public computer and want to remove your credentials
  • You need to troubleshoot authentication issues

Options

OptionDescription
--helpShow help message for the logout command

Examples

# Log out from Cogni+
cogni logout

Output

Successfully logged out.
Auth tokens removed from ~/.cogni/config.json
  • cogni login - Log in to Cogni+ using your browser session
  • cogni init - Initialize Cogni+ CLI with an interactive setup wizard

Tips

  • Your configuration file at ~/.cogni/config.json will be updated to remove authentication information
  • Other settings in your configuration file will be preserved
  • You don’t need to log out between sessions on your personal devices
  • Always log out when working on shared or public computers