Auth Command
Theauth
command manages authentication credentials and profiles for the AhaSend CLI.
Overview
login
- Authenticate with AhaSendstatus
- Show authentication statusswitch
- Switch between profileslogout
- Remove authentication
Login
Authenticate with your AhaSend API credentials:Interactive Login
- API Key
- Account ID
- Profile name (optional)
Direct Login
Flags
--api-key
: Your AhaSend API key--account-id
: Your AhaSend Account ID--profile
: Profile name (default: “default”)--api-url
: Custom API URL (default: https://api.ahasend.com)
Status
Check current authentication status and available profiles:Switch
Change the active profile:Logout
Remove authentication credentials:Profile Management
Multiple Environments
Set up profiles for different environments:Using Profiles
Security Notes
- Credentials are stored in
~/.ahasend/config.yaml
- File permissions are set to 600 (read/write for owner only)
- Never commit credentials to version control
- Use environment variables for CI/CD