gleef login
command authenticates your CLI with Gleef using your API key. This is required before using any other commands.
Usage
Options
Flag | Short | Description |
---|---|---|
--key | -k | API key for Gleef (skips interactive prompt) |
Interactive Authentication
When you rungleef login
without the --key
flag, you’ll be guided through an interactive process:
If you don’t have an API key:
If you have an API key:
Direct Authentication
For automation or scripts, provide the key directly:Getting Your API Key
1
Access Gleef Dashboard
Visit https://app.gleef.eu/settings/api-keys and log in to your account.
2
Generate API Key
Click “Generate New API Key” and provide a description (e.g., “Simo’s CLI Access”).
3
Copy the Key
Copy the generated API key. You won’t be able to see it again once you close the dialog.
4
Store Securely
Store the key securely - it provides full access to your Gleef account.
Authentication Storage
Once authenticated, your API key is stored globally in your user configuration directory:- macOS:
~/.config/gleef/config.json
- Linux:
~/.config/gleef/config.json
- Windows:
%APPDATA%\gleef\config.json
Security Considerations
Your API key provides full access to your Gleef account. Keep it secure!
Best Practices
- Never commit API keys - Don’t include them in version control
- Use environment variables - For CI/CD and automation
- Rotate keys regularly - Generate new keys periodically
- Limit key access - Use separate keys for different environments
- Revoke unused keys - Remove keys that are no longer needed
Environment Variables
For CI/CD pipelines, you can set the API key as an environment variable:Verification
To verify your authentication is working:Re-authentication
To change your API key or re-authenticate:- Run login again:
gleef login
will overwrite the existing key - Use direct flag:
gleef login --key NEW_API_KEY
- Delete config: Remove the config file and run
gleef login
Troubleshooting
Invalid API Key Error
- Verify the key was copied correctly (no extra spaces)
- Check if the key has been revoked in the Gleef dashboard
- Ensure you’re using the correct account/workspace
Network Connection Issues
If you can’t reach the Gleef servers:- Check your internet connection
- Verify corporate firewall settings
- Try using a VPN if behind restrictive network policies
Permission Issues
If you get file permission errors:- macOS/Linux: Check permissions on
~/.config/gleef/
- Windows: Ensure you have write access to
%APPDATA%\gleef\