CLI Commands
logout
Thelogout command removes your Cogni+ authentication session.
Usage
Description
Thelogout 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
| Option | Description |
|---|---|
--help | Show help message for the logout command |
Examples
Output
Related Commands
cogni login- Log in to Cogni+ using your browser sessioncogni init- Initialize Cogni+ CLI with an interactive setup wizard
Tips
- Your configuration file at
~/.cogni/config.jsonwill 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