Skip to main content

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

  1. Clone the repository:

    git clone https://github.com/joedemcher/simplelogin-cli.git
    cd simplelogin-cli
    
  2. 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 key
  • SIMPLELOGIN_CONFIG: Custom path to the configuration file
  • XDG_CONFIG_HOME: Base directory for user-specific configuration files

Troubleshooting

Common Issues

  1. API Key errors: Ensure your API key is correctly set and that it's valid in the SimpleLogin dashboard.

  2. Rate limiting: SimpleLogin may rate-limit API requests. If you encounter errors, try again after a short delay.

  3. 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplelogin-0.2.6.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplelogin-0.2.6-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2Python 3

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

Hashes for simplelogin-0.2.6.tar.gz
Algorithm Hash digest
SHA256 a396ac94e63719ae3532b0e9d70e98b00b254a06e1e61218f6594e04bb5b8f18
MD5 0e75d8b37bc5846372ae3d7a7b53f310
BLAKE2b-256 13e911cd2a484937c2743c7bfbfa380dea57cfe2f6dc76cfcd8c690be5648c41

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplelogin-0.2.6.tar.gz:

Publisher: python-publish.yml on joedemcher/simplelogin-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for simplelogin-0.2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e2401f557f4fee6a74f706156253ac1b8ee0c6bebb211c3d1b0d8bf6de114677
MD5 36e895e46b9dc1eb51b3dbb93c27d4f3
BLAKE2b-256 f45b7f2fb74a7264ac5bc2b79339263203c88fba6fbb01f112234a98a36bb451

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.1

2 files

0.2.0

1 file

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page