logout command removes your stored authentication credentials and logs you out of Sher.
Usage
What Happens
When you runsher logout:
- Your auth token is removed from
~/.sher/auth.json - You’re logged out locally
- Future
sher linkcommands will run as anonymous (1 link/day limit) - You can no longer use
sher listorsher delete
Logging out does NOT delete your existing deployments. They will continue to be accessible until they expire.
Example
When Not Logged In
If you’re not currently logged in:What Gets Removed
- Authentication token: Deleted from
~/.sher/auth.json - Local credentials: All stored auth data is removed
What Stays
- Existing deployments: Your deployed links remain active until they expire
- GitHub authorization: The OAuth connection remains in your GitHub settings (you can manually revoke it)
Effects of Logging Out
After logging out, you’ll be downgraded to Anonymous tier:| Feature | Anonymous | Starter (Free) |
|---|---|---|
| Links per day | 1 | 25 |
| Max upload size | 10MB | 50MB |
| Max TTL | 6 hours | 24 hours |
| List deployments | ❌ | ✅ |
| Delete deployments | ❌ | ✅ |
Use Cases
Switch accounts
Revoke access
If you want to stop using Sher or remove access:Troubleshoot authentication
If you’re having auth issues:Re-authenticating
To log back in after logging out:Security
Logging out:- Removes the token from your local machine
- Does NOT revoke the OAuth token on GitHub’s side
- Does NOT delete your deployments
- Run
sher logout - Visit GitHub Settings → Applications
- Find “Sher” and click “Revoke”
Related Commands
sher login- Authenticate with GitHubsher whoami- Check current login status