A command-line interface for managing your SimpleLogin email aliases and custom domains.
Project description
SimpleLogin CLI
A command-line interface for managing your SimpleLogin email aliases and custom domains.
Disclaimer: This tool is not officially associated with or endorsed by SimpleLogin. It is an independent, community-developed project that interacts with the SimpleLogin API.
Overview
SimpleLogin CLI provides a convenient way to manage your SimpleLogin email aliases directly from your terminal. With this tool, you can:
- List, create, toggle, and delete email aliases
- View detailed information about your aliases
- Manage contacts for your aliases
- Manage custom domains
- View mailboxes associated with your account
- Search and filter your aliases
Installation
Prerequisites
- Python 3.6 or higher
- A SimpleLogin account with an API key
Install via pip
pip install simplelogin
Manual Installation
-
Clone the repository:
git clone https://github.com/joedemcher/simplelogin-cli.git cd simplelogin-cli
-
Install dependencies/package:
pip install .
Configuration
Before using SimpleLogin CLI, you need to configure your API key:
simplelogin config set-key YOUR_API_KEY
You can create your API key in the SimpleLogin dashboard under API Keys.
Alternatively, you can set the API key as an environment variable:
export SIMPLELOGIN_API_KEY=YOUR_API_KEY
To view your current configuration:
simplelogin config view
Usage
Managing Aliases
List aliases
# List all aliases
simplelogin aliases list
# Paginate through aliases
simplelogin aliases list --page=1
# Show only enabled aliases
simplelogin aliases list --enabled
# Show only disabled aliases
simplelogin aliases list --disabled
# Show only pinned aliases
simplelogin aliases list --pinned
# Search aliases
simplelogin aliases list --query="github"
Create aliases
# Create a custom alias
simplelogin aliases create custom github
# You'll be prompted to select a suffix and mailbox
# Create a custom alias with options
simplelogin aliases create custom github --note="For GitHub notifications" --name="GitHub"
# Create a random alias
simplelogin aliases create random
# Create a random alias with word mode
simplelogin aliases create random --mode=word
# Create a random alias with a note
simplelogin aliases create random --note="For newsletter signups"
Manage existing aliases
# Toggle an alias (enable/disable)
simplelogin aliases toggle 123
# Delete an alias
simplelogin aliases delete 123
# View detailed information about an alias
simplelogin aliases info 123
Manage contacts
# List contacts for an alias
simplelogin contacts list 123
# Create a new contact for an alias
simplelogin contacts create 123 user@example.com
# Delete a contact for an alias
simplelogin contacts delete 123
# Toggle a contact (block/unblock)
simplelogin contacts toggle 123
Managing Custom Domains
# List all custom domains
simplelogin domains list
# View domain details
simplelogin domains info 42
# Update domain settings
simplelogin domains update 42 --catch-all=true --random-prefix=true
# View deleted aliases for a domain
simplelogin domains trash 42
Managing Mailboxes
# List all mailboxes
simplelogin mailboxes list
Advanced Usage
Specifying Mailboxes
When creating a custom alias, you can specify which mailboxes should receive emails:
simplelogin aliases create custom github --mailboxes=1,2,3
If you don't specify mailboxes, you'll be prompted to select them interactively.
Environment Variables
The tool recognizes the following environment variables:
SIMPLELOGIN_API_KEY: Your SimpleLogin API keySIMPLELOGIN_CONFIG: Custom path to the configuration fileXDG_CONFIG_HOME: Base directory for user-specific configuration files
Troubleshooting
Common Issues
-
API Key errors: Ensure your API key is correctly set and that it's valid in the SimpleLogin dashboard.
-
Rate limiting: SimpleLogin may rate-limit API requests. If you encounter errors, try again after a short delay.
-
Permissions issues: Some operations may require a premium SimpleLogin subscription.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgements
- SimpleLogin for their email alias service
- docopt for command-line interface parsing
- tabulate for pretty table formatting
- questionary for interactive prompts
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simplelogin-0.2.6.tar.gz.
File metadata
- Download URL: simplelogin-0.2.6.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a396ac94e63719ae3532b0e9d70e98b00b254a06e1e61218f6594e04bb5b8f18
|
|
| MD5 |
0e75d8b37bc5846372ae3d7a7b53f310
|
|
| BLAKE2b-256 |
13e911cd2a484937c2743c7bfbfa380dea57cfe2f6dc76cfcd8c690be5648c41
|
Provenance
The following attestation bundles were made for simplelogin-0.2.6.tar.gz:
Publisher:
python-publish.yml on joedemcher/simplelogin-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simplelogin-0.2.6.tar.gz -
Subject digest:
a396ac94e63719ae3532b0e9d70e98b00b254a06e1e61218f6594e04bb5b8f18 - Sigstore transparency entry: 1174782143
- Sigstore integration time:
-
Permalink:
joedemcher/simplelogin-cli@66d2fc18f63eea8241c8397a42e9f5d70378b77c -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/joedemcher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@66d2fc18f63eea8241c8397a42e9f5d70378b77c -
Trigger Event:
release
-
Statement type:
File details
Details for the file simplelogin-0.2.6-py2.py3-none-any.whl.
File metadata
- Download URL: simplelogin-0.2.6-py2.py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2401f557f4fee6a74f706156253ac1b8ee0c6bebb211c3d1b0d8bf6de114677
|
|
| MD5 |
36e895e46b9dc1eb51b3dbb93c27d4f3
|
|
| BLAKE2b-256 |
f45b7f2fb74a7264ac5bc2b79339263203c88fba6fbb01f112234a98a36bb451
|
Provenance
The following attestation bundles were made for simplelogin-0.2.6-py2.py3-none-any.whl:
Publisher:
python-publish.yml on joedemcher/simplelogin-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simplelogin-0.2.6-py2.py3-none-any.whl -
Subject digest:
e2401f557f4fee6a74f706156253ac1b8ee0c6bebb211c3d1b0d8bf6de114677 - Sigstore transparency entry: 1174782190
- Sigstore integration time:
-
Permalink:
joedemcher/simplelogin-cli@66d2fc18f63eea8241c8397a42e9f5d70378b77c -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/joedemcher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@66d2fc18f63eea8241c8397a42e9f5d70378b77c -
Trigger Event:
release
-
Statement type: