TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/buttondown/cli/llms.txt
Use this file to discover all available pages before exploring further.
logout command removes your stored API key and clears all local credentials.
Usage
Example
What Gets Removed
Thelogout command clears your entire Buttondown CLI configuration, including:
- Your API key
- Your base URL (if customized)
- Any other stored settings
buttondown login again before using commands that require authentication.
No Options
Thelogout command doesn’t accept any flags or options. It simply clears your stored credentials.
When to Use Logout
You might want to log out when:- Switching to a different Buttondown account
- Removing credentials from a shared machine
- Troubleshooting authentication issues
- Decommissioning a development environment
After Logging Out
Commands that require authentication will fail:create command since it doesn’t require authentication:
Alternative: Using —force with login
If you just want to switch API keys, you don’t need to log out first. Usebuttondown login --force instead:
Configuration File Location
The logout command removes the configuration file from:- macOS:
~/Library/Preferences/buttondown-cli-nodejs/ - Linux:
~/.config/buttondown-cli-nodejs/ - Windows:
%APPDATA%\buttondown-cli-nodejs\
Next Steps
After logging out, you’ll typically want to:- Run buttondown login to authenticate with a different account
- Or simply close your terminal if you’re done using the CLI