Command line interface to the Gandi API
Project description
Gandi CLI Tool
Command line interface to the Gandi API.
Installation
pip
Install using pip:
pip3 install --user gandi
pipx
Install using pipx:
pipx install gandi
Configuration
Run gandi setup
to create a configuration file at
$XDG_CONFIG_HOME/gandi/config
. This will ask for your Gandi API key as well
as an (optional) default domain name and an (optional) default mailbox ID.
If you specify a domain name and mailbox ID, subcommands that require these parameters will use the values supplied in your config file instead of requiring them as commandline flags.
Parameters can also be specified using environment variables, e.g.:
GANDI_API_KEY=... gandi mbox -d DOMAIN --list
Usage
gandi SUBCOMMAND OPTIONS
Subcommands
setup: Setup the Gandi CLI config file
gandi setup
alias: Manage email aliases
gandi alias [-d DOMAIN] [-m MAILBOXID] (--list | --add ALIAS | --remove ALIAS)
List existing email aliases:
gandi alias -l
Add a new alias:
gandi alias -a ALIAS
Remove an alias:
gandi alias -r ALIAS
mbox: Manage email mailboxes
gandi mbox [-d DOMAIN] --list
Project details
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
File details
Details for the file gandi-0.2.4.tar.gz
.
File metadata
- Download URL: gandi-0.2.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d5c75bfb6897f309c145d5d8ed10d7ee798b6fc00a52ec5c6f514b2928b5946 |
|
MD5 | a5e2b14473065984c7bb6c5f90db233b |
|
BLAKE2b-256 | aebb666e91ff887a54fb11aa8499691e429fa19a07d3aaba361209433d82bc60 |
File details
Details for the file gandi-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: gandi-0.2.4-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259bc30e4297d9e6533170e428ff935094db5a4ee6816807ea9a7e630de8645a |
|
MD5 | 9a8b72be1b05757179720853a43f972b |
|
BLAKE2b-256 | 12f35ba7f1adf7eca6a73580fb219a134e575f9459a436d1b89239c0c2ce4770 |