Skip to main content

login

Authenticate with the LEAP platform using your API token.
Arguments
  • api-token (required): Your LEAP platform API token
Behavior
  • Validates the API token with the LEAP platform
  • Stores the token in ~/.liquid-leap configuration file
  • If already logged in with a different token, prompts for confirmation to switch
  • If already logged in with the same token, shows a warning message
Examples
Error Cases
  • Invalid API token: Shows validation error and exits with code 1
  • Network connectivity issues: Shows connection error
  • Token storage failure: Shows file system error
API tokens are stored locally in ~/.liquid-leap with restricted file permissions (600). Keep your tokens secure and never share them.

logout

Clear stored authentication credentials.
Arguments: None Behavior
  • Removes the stored API token from the configuration file
  • If not logged in, shows informational message
  • Always exits successfully
Examples

whoami

Display information about the currently authenticated user.
Arguments: None Behavior
  • Queries the LEAP platform API to get user information
  • Displays the email address associated with the current API token
  • Requires valid authentication
Examples
Error Cases
  • Not authenticated: Prompts to login first
  • Invalid/expired token: Shows authentication error
  • Network issues: Shows connection error