EnvlopedDocs

Command Reference

Complete reference for all Envloped CLI commands and flags.

Command Reference

Authentication

envloped login

Authenticate with your Envloped API key.

envloped login --api-key en_xxxxx       # Direct flag
envloped login                          # Interactive prompt

envloped logout

Clear stored credentials for the current profile.

envloped logout
envloped logout --profile staging

envloped whoami

Show the authenticated user and organization info.

envloped whoami
envloped whoami --json

Sending Emails

envloped send

Send an email from the terminal.

# Inline text (with sender name)
envloped send --from "Your Name <hello@mydomain.com>" --to user@example.com \
  --subject "Welcome!" --text "Hello world"

# HTML body
envloped send --from "Your Name <hello@mydomain.com>" --to user@example.com \
  --subject "Welcome!" --html "<h1>Hello</h1>"

# From file
envloped send --from "Your Name <hello@mydomain.com>" --to user@example.com \
  --subject "Newsletter" --html-file template.html

# JSON stdin (best for CI/CD and agents)
echo '{"from":"Your Name <a@b.com>","to":"c@d.com","subject":"Hi","text":"Hello"}' | envloped send --stdin

# Multiple recipients
envloped send --from a@b.com --to user1@example.com --to user2@example.com \
  --subject "Broadcast" --text "Hello all"

# Dry run (validate without sending)
envloped send --from a@b.com --to user@example.com --subject "Test" --text "Hi" --dry-run
FlagDescription
--fromSender email address (supports "Name <email>" format)
--toRecipient email address (repeatable)
--subjectEmail subject
--htmlHTML body
--textPlain text body
--html-fileRead HTML body from file
--text-fileRead text body from file
--stdinRead full email payload as JSON from stdin
--dry-runValidate without sending

Email Management

envloped emails list

List sent emails with optional filtering.

envloped emails list
envloped emails list --status sent
envloped emails list --status failed --limit 10
envloped emails list --search "welcome"
envloped emails list --json
FlagDescription
--statusFilter by status: sent, failed, bounced
--searchSearch by recipient address or subject
--limitNumber of results (default: 20)
--pagePage number (default: 1)

envloped emails get [id]

Get details for a specific email.

envloped emails get abc123
envloped emails get abc123 --json

Domain Management

envloped domains list

List all domains for your account.

envloped domains list
envloped domains list --json

envloped domains add [domain]

Add a new domain and display DNS records for verification.

envloped domains add mydomain.com

envloped domains verify [domain]

Check the verification status of a domain.

envloped domains verify mydomain.com

envloped domains records [domain]

Re-display DNS records needed to verify a domain.

envloped domains records mydomain.com

Contacts

Manage marketing contacts (subscribers). See the Contacts API for the underlying endpoints.

envloped contacts list

List contacts with optional filtering.

envloped contacts list
envloped contacts list --status subscribed
envloped contacts list --list ls_newsletter --search "acme"
envloped contacts list --limit 50 --page 2 --json
FlagDescription
--statusFilter by status: subscribed, unsubscribed, bounced, complained, suppressed, pending
--listFilter by list ID
--searchSearch by email
--limitNumber of results (default: 20)
--pagePage number (default: 1)

envloped contacts get [id]

Show a contact's details and its list memberships.

envloped contacts get ct_abc123
envloped contacts get ct_abc123 --json

envloped contacts create [email]

Create a contact, optionally adding it to lists.

envloped contacts create jane@example.com
envloped contacts create jane@example.com --first-name Jane --last-name Doe
envloped contacts create jane@example.com --list ls_newsletter --list ls_beta
FlagDescription
--first-nameContact first name
--last-nameContact last name
--listList ID to add the contact to (repeatable)
--consent-sourceConsent source: api, csv_import, form, manual

envloped contacts update [id]

Update a contact's name or status.

envloped contacts update ct_abc123 --first-name Jane
envloped contacts update ct_abc123 --status unsubscribed
FlagDescription
--first-nameNew first name
--last-nameNew last name
--statusNew status

envloped contacts delete [id]

Permanently delete a contact (irreversible GDPR hard delete). Requires confirmation unless --force is used.

envloped contacts delete ct_abc123
envloped contacts delete ct_abc123 --force

envloped contacts export

Export all contacts as CSV to stdout or a file.

envloped contacts export
envloped contacts export --output contacts.csv
FlagDescription
--outputWrite CSV to a file instead of stdout

Lists

Manage contact lists and membership. See the Lists API for the underlying endpoints.

envloped lists list

List all lists with member counts.

envloped lists list
envloped lists list --json

envloped lists get [id]

Show a list's details.

envloped lists get ls_newsletter

envloped lists create [name]

Create a list.

envloped lists create "Newsletter"
envloped lists create "Newsletter" --description "Weekly product digest"
FlagDescription
--descriptionList description

envloped lists update [id]

Rename or re-describe a list.

envloped lists update ls_newsletter --name "Weekly Newsletter"
envloped lists update ls_newsletter --description "Every Monday"
FlagDescription
--nameNew name
--descriptionNew description

envloped lists delete [id]

Soft-delete a list (contacts are untouched). Requires confirmation unless --force is used.

envloped lists delete ls_newsletter
envloped lists delete ls_newsletter --force

envloped lists members [id]

List the members of a list.

envloped lists members ls_newsletter
envloped lists members ls_newsletter --limit 100 --page 2
FlagDescription
--limitNumber of results (default: 20)
--pagePage number (default: 1)

envloped lists add [id] [contactID...]

Add one or more existing contacts to a list.

envloped lists add ls_newsletter ct_abc123
envloped lists add ls_newsletter ct_abc123 ct_def456

envloped lists remove [id] [contactID...]

Remove one or more contacts from a list (membership only — the contacts are not deleted).

envloped lists remove ls_newsletter ct_def456

API Key Management

envloped keys list

List all API keys for your account.

envloped keys list
envloped keys list --json

envloped keys create [name]

Create a new API key. The key is only displayed once.

envloped keys create "Production Key"
envloped keys create "CI Pipeline Key" --json

envloped keys delete [id]

Delete an API key. Requires confirmation unless --force is used.

envloped keys delete abc123
envloped keys delete abc123 --force

Configuration

envloped config set [key] [value]

Set a configuration value.

envloped config set default_from hello@mydomain.com
envloped config set api_url https://api.envloped.com

envloped config get [key]

Get a configuration value.

envloped config get default_from

Valid keys: api_url, default_from, output_format

Shell Completions

envloped completion [shell]

Generate shell completion scripts.

# Bash
source <(envloped completion bash)

# Zsh
source <(envloped completion zsh)

# Fish
envloped completion fish | source

Other

envloped version

Print the CLI version, commit, and build date.

envloped version
# envloped v0.1.0 (commit: abc123, built: 2026-03-28)

On this page