Skip to main content

vers logout

Log out from the Vers platform by removing your stored API key.

Usage

vers logout

Examples

Successful logout

vers logout
Successfully logged out from Vers

Already logged out

vers logout
You are not currently logged in

How it works

The logout command:
  1. Checks for existing API key: Verifies if you’re currently logged in
  2. Removes stored credentials: Clears the API key from local storage
  3. Confirms logout: Shows success message or current login status

What happens after logout

  • Your stored API key is removed from the local machine
  • You’ll need to run vers login again to use authenticated commands
  • No data, projects, or VMs are affected - only local authentication

Use cases

Switch accounts

vers logout
vers login --token different-api-key

Security cleanup

# When finished working on a shared machine
vers logout

Troubleshoot authentication

# Clear potentially corrupted credentials
vers logout
vers login

Error handling

Permission issues

vers logout
Error: error removing API key: permission denied

Check operation issues

vers logout
Error: error checking for API key: [specific error]

Prerequisites

  • No special requirements - works whether logged in or not

See Also