merlin auth

Enterprise authentication hub for secure access management, subscription control, and comprehensive usage analytics with audit trail capabilities.

Basic Usage

# Login with email and password
merlin auth login

# Check authentication status
merlin auth status

# Logout and clear credentials
merlin auth logout

Enterprise Security

All authentication data is encrypted at rest using AES-256 encryption. JWT tokens are securely stored and automatically refreshed for continuous access.

Authentication Features

Secure Authentication

  • JWT token management
  • Encrypted credential storage
  • Automatic token refresh
  • Session management

Account Management

  • Subscription monitoring
  • Usage tracking
  • Rate limit visibility
  • Feature access control

Analytics & Reporting

  • Usage statistics
  • Command history
  • Compliance reports
  • Export capabilities

Available Subcommands

merlin auth login

Authenticate with Merlin services using email and password

$ merlin auth login
merlin auth logout

Clear authentication credentials and end session

$ merlin auth logout
merlin auth status

Display current authentication status and user information

$ merlin auth status --json
merlin auth subscription

View subscription details and account information

$ merlin auth subscription
merlin auth usage

Display API usage statistics for current month

$ merlin auth usage --json
merlin auth history

View command execution history

$ merlin auth history

Advanced Options

--json

Output results in JSON format

$ merlin auth status --json
--email

Email address for login (will prompt if not provided)

$ merlin auth login --email user@company.com
--password

Password for login (will prompt securely if not provided)

$ merlin auth login --password
--save-token

Save authentication token securely (enabled by default)

$ merlin auth login --save-token
--all-sessions

Logout from all sessions when logging out

$ merlin auth logout --all-sessions
--month

Specific month for usage statistics (YYYY-MM format)

$ merlin auth usage --month 2024-01

Example Output

🔐 Merlin Authentication v0.1.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Authenticated
User: enterprise@company.com
Subscription: Enterprise Pro
Token expires: 2024-12-31 23:59:59 UTC
📊 USAGE STATISTICS
API Calls (30d): 2,847 / 10,000 (28%)
Analysis runs: 342
Security scans: 156
🏢 ENTERPRISE FEATURES
✓ Concurrent processing enabled
✓ Advanced security scanning
✓ Compliance reporting
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Ready for enterprise analysis

Related Commands

Once authenticated, explore other Merlin CLI commands for comprehensive code analysis.