Skip to main content

Overview

The sunpeak logout command logs you out of your Sunpeak account by revoking your access token and removing stored credentials.
sunpeak logout

What Happens

When you run sunpeak logout:
  1. The access token is revoked on the Sunpeak server
  2. Local credentials are deleted from ~/.sunpeak/credentials.json
  3. You’ll need to run sunpeak login again to use authenticated commands
$ sunpeak logout
Logging out...
 Successfully logged out of Sunpeak.

Not Logged In

If you’re not currently logged in:
$ sunpeak logout
Not logged in.

Usage

sunpeak logout
No additional options are required.