Manage the connections to your email accounts
What those CLI commands are for:
What they’re not for:
Should you need help with the CLI syntax, you can always invoke:
Add a new IMAP account with interactive setup. The CLI will auto-detect your email provider and configure the appropriate settings.
Follow the prompts to enter your account details. The CLI will guide you through:
Follow the prompts to enter your account details. The CLI will guide you through:
For Gmail, Outlook, Yahoo, and iCloud, the CLI will automatically configure the correct server settings for imap-server
and imap-port
.
Automatically configures imap.gmail.com:993
Automatically configures outlook.office365.com:993
Automatically configures imap.mail.yahoo.com:993
Automatically configures imap.mail.me.com:993
For Gmail, you’ll need to use an App Password instead of your regular password. Generate one at myaccount.google.com/apppasswords.
Option | Short | Description |
---|---|---|
--name | -n | Account name for reference |
--email | -e | Email address |
--provider | -p | Email provider (gmail, outlook, yahoo, icloud, custom) |
--imap-server | IMAP server address (for custom providers) | |
--imap-port | IMAP port (for custom providers) |
Display all configured email accounts in a formatted table.
Alias: relay accounts ls
The output shows:
If no accounts are configured, the CLI will display a helpful message prompting you to add one.
Remove an account and its stored credentials from your system.
The CLI will ask for confirmation before removing the account.
The CLI will ask for confirmation before removing the account.
Aliases: --force
, -f
, -y
Removes the account without asking for confirmation.
This action is irreversible. You’ll need to re-add the account if you want to use it again.
Verify that your account credentials are working and the server is reachable.
This command will:
Use this command to troubleshoot connection issues or verify your setup after adding an account.