Authentication¶
Manage your EGA session with the auth subcommands.
Login¶
Authenticates with EGA and stores OAuth2 tokens locally.
Interactive mode (default):
egafetch auth login
# EGA Username (email): user@example.com
# EGA Password: ********
# Authenticating...
# Login successful!
Config file mode:
Flags¶
| Flag | Description |
|---|---|
--cf |
Path to JSON config file ({"username":"...","password":"..."}) |
--config-file |
Alias for --cf |
Status¶
Shows the current authentication state without refreshing the token.
Output when logged in:
Output when not logged in:
Logout¶
Clears stored credentials from both memory and disk (~/.egafetch/credentials.json).