signaloid-cli auth
Authenticate with Signaloid Cloud Compute Engine and manage credentials.
Synopsis
signaloid-cli auth <command> [options]
Description
The auth command group allows you to authenticate with the Signaloid Cloud Compute Engine using either an API key or email/password credentials. It also provides commands to check your current authentication status and log out.
Commands
auth login- Authenticate with Signaloidauth whoami- Show current userauth logout- Clear authentication
Configuration
Config File Location
Credentials are stored in:
- macOS:
~/Library/Application Support/signaloid-cli/config.json - Linux:
~/.config/signaloid-cli/config.json - Windows:
%APPDATA%\signaloid-cli\config.json
Config File Format
{
"auth": {
"mode": "apikey",
"apiKey": "scce_1234567890abcdef"
}
}
Or for email/password:
{
"auth": {
"mode": "userpass",
"email": "user@example.com"
}
}
Exit Codes
| Code | Description |
|---|---|
0 | Success |
1 | Authentication failed or invalid credentials |
Security
Best Practices
- ✅ Use API keys for automation and CI/CD
- ✅ Store API keys in environment variables or secrets managers
- ✅ Rotate API keys regularly
- ✅ Never commit API keys to version control
- ✅ Use different API keys for different environments
CI/CD Integration
GitHub Actions:
- name: Authenticate with Signaloid
env:
SIGNALOID_API_KEY: ${{ secrets.SIGNALOID_API_KEY }}
run: |
signaloid-cli auth login --api-key $SIGNALOID_API_KEY
signaloid-cli auth whoami
GitLab CI:
before_script:
- signaloid-cli auth login --api-key $SIGNALOID_API_KEY
- signaloid-cli auth whoami
Script with Error Handling
#!/bin/bash
API_KEY="${SIGNALOID_API_KEY}"
if [ -z "$API_KEY" ]; then
echo "Error: SIGNALOID_API_KEY not set"
exit 1
fi
# Authenticate
if signaloid-cli auth login --api-key "$API_KEY"; then
echo "✓ Authentication successful"
else
echo "✗ Authentication failed"
exit 1
fi
# Verify
if signaloid-cli auth whoami > /dev/null 2>&1; then
echo "✓ Credentials valid"
EMAIL=$(signaloid-cli auth whoami | jq -r '.email')
echo "Logged in as: $EMAIL"
else
echo "✗ Invalid credentials"
exit 1
fi
Troubleshooting
"Authentication failed" Error
Problem: Login fails with authentication error.
Solutions:
- Verify your API key is correct
- Check for extra spaces or newlines in the key
- Generate a new API key from signaloid.io/settings/api
- Verify network connectivity
"Invalid email address" Error
Problem: Email validation fails during login.
Solutions:
- Ensure email is in correct format:
user@example.com - Check for typos
- Don't include spaces before or after email
"API key cannot be empty" Error
Problem: Attempting to login with empty API key.
Solutions:
- Verify environment variable is set:
echo $SIGNALOID_API_KEY - Check for quote issues in shell
- Ensure API key is passed correctly
See Also
- signaloid-cli repos - Manage repositories
- signaloid-cli builds - Manage builds
- signaloid-cli tasks - Manage tasks
- Authentication Guide - Detailed authentication guide
Learn More
- Security Best Practices - Keep your credentials secure