GitHub - dvcrn/maskedemail-cli: CLI to create fastmail masked emails
source link: https://github.com/dvcrn/maskedemail-cli
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Fastmail MaskedEmail CLI
CLI to create Fastmail Masked Emails for whenever you need to
Setup
go get github.com/dvcrn/maskedemail-cli
or newer Go versions
go install github.com/dvcrn/maskedemail-cli@latest
Authentication
You'll need to create a FastMail API token.
The only necessary scope is "Masked Email".
Always use unique API tokens with the minimum scope(s) necessary for different purposes.
You can test authentication by running maskedemail-cli -token abcdef12345 session
.
Usage
Usage of maskedemail-cli:
Flags:
-accountid string
fastmail account id (or MASKEDEMAIL_ACCOUNTID env)
-appname string
the appname to identify the creator (or MASKEDEMAIL_APPNAME env) (default: maskedemail-cli)
-token string
the token to authenticate with (or MASKEDEMAIL_TOKEN env)
Commands:
maskedemail-cli create <domain>
maskedemail-cli enable <masked email>
maskedemail-cli disable <masked email>
maskedemail-cli session
maskedemail-cli list
Example:
$ maskedemail-cli -token abcdef12345 create facebook.com
$ maskedemail-cli -token abcdef12345 enable [email protected]
$ maskedemail-cli -token abcdef12345 disable [email protected]
$ maskedemail-cli -token abcdef12345 list | grep facebook
[email protected] https://www.facebook.com disabled 2022-08-09T07:49:43Z
License
Attributions
JMAP API documentation from jmapio/jmap (Apache 2.0 / Copyright 2016 Fastmail Pty Ltd)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK