Authentication

Learn how to authenticate and manage your Gophel CLI sessions.

Getting Started

To use Gophel CLI, you need to authenticate with your Gophel account:

Start the authentication process

gophel auth

You'll be prompted to enter your username and API key.

Managing Sessions

Check your current authentication status:

View current authentication status

gophel auth status

Log out from your current session:

End the current session

gophel auth logout
Session Files

Gophel stores session information in the following location:

~/.gophel/session.json

This file contains your authentication token and should be kept secure.

Best Practices
  • Always log out when you're done using Gophel
  • Keep your API key secure and never share it
  • Rotate your API key periodically
  • Use environment variables for sensitive data