Interactive command — Authenticates with your Fjall account for API access.
Overview
Thefjall login command authenticates with your Fjall account and stores API credentials locally. This enables access to Fjall’s cloud services and remote features.
Usage
Authentication Flow
First-Time Login
Existing Credentials
If you’re already logged in, you’ll be prompted:How It Works
- Prompts for credentials - Email/username and password
- Creates API key - Generates a CLI-specific API key
- Stores locally - Saves credentials in
~/fjall/ - Validates access - Confirms authentication succeeded
Credential Storage
Fjall stores credentials securely in your home directory:- Stored locally only
- Used for API authentication
- Not shared or synced
- Can be deleted anytime
Use Cases
Initial Setup
After installing Fjall CLI:Switching Accounts
To use a different Fjall account:CI/CD Integration
For automated environments, set credentials via environment variables instead of using login:Security
Best Practices
- Protect credentials - Keep
~/fjall/directory secure - Use unique passwords - Don’t reuse passwords
- Regular rotation - Update credentials periodically
- Logout when done - Remove credentials if needed
Removing Credentials
To logout and remove stored credentials:Troubleshooting
Authentication Failed
If login fails:- Incorrect email/username
- Wrong password
- Account doesn’t exist
- Network issues
- Verify credentials are correct
- Reset password if forgotten
- Check network connectivity
- Contact support if issues persist
Can’t Find Credentials
If commands say you’re not authenticated:- Run
fjall loginagain - Check
~/fjall/exists - Ensure file permissions are correct
Multiple Users
For shared machines:- Each OS user has separate credentials
- Stored in their home directory
- No conflicts between users
Integration with Fjall Services
Once logged in, you can access:- Remote deployment features
- Cloud synchronisation
- Team collaboration tools
- Usage analytics
Next Steps
After logging in:- Create infrastructure:
fjall create app - Deploy to cloud:
fjall deploy - Manage resources:
fjall list
The login command is optional for local-only usage. It’s required for features that interact with Fjall’s cloud services.