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 promptenvloped logout
Clear stored credentials for the current profile.
envloped logout
envloped logout --profile stagingenvloped whoami
Show the authenticated user and organization info.
envloped whoami
envloped whoami --jsonSending 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| Flag | Description |
|---|---|
--from | Sender email address (supports "Name <email>" format) |
--to | Recipient email address (repeatable) |
--subject | Email subject |
--html | HTML body |
--text | Plain text body |
--html-file | Read HTML body from file |
--text-file | Read text body from file |
--stdin | Read full email payload as JSON from stdin |
--dry-run | Validate 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| Flag | Description |
|---|---|
--status | Filter by status: sent, failed, bounced |
--search | Search by recipient address or subject |
--limit | Number of results (default: 20) |
--page | Page number (default: 1) |
envloped emails get [id]
Get details for a specific email.
envloped emails get abc123
envloped emails get abc123 --jsonDomain Management
envloped domains list
List all domains for your account.
envloped domains list
envloped domains list --jsonenvloped domains add [domain]
Add a new domain and display DNS records for verification.
envloped domains add mydomain.comenvloped domains verify [domain]
Check the verification status of a domain.
envloped domains verify mydomain.comenvloped domains records [domain]
Re-display DNS records needed to verify a domain.
envloped domains records mydomain.comContacts
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| Flag | Description |
|---|---|
--status | Filter by status: subscribed, unsubscribed, bounced, complained, suppressed, pending |
--list | Filter by list ID |
--search | Search by email |
--limit | Number of results (default: 20) |
--page | Page 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 --jsonenvloped 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| Flag | Description |
|---|---|
--first-name | Contact first name |
--last-name | Contact last name |
--list | List ID to add the contact to (repeatable) |
--consent-source | Consent 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| Flag | Description |
|---|---|
--first-name | New first name |
--last-name | New last name |
--status | New 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 --forceenvloped contacts export
Export all contacts as CSV to stdout or a file.
envloped contacts export
envloped contacts export --output contacts.csv| Flag | Description |
|---|---|
--output | Write 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 --jsonenvloped lists get [id]
Show a list's details.
envloped lists get ls_newsletterenvloped lists create [name]
Create a list.
envloped lists create "Newsletter"
envloped lists create "Newsletter" --description "Weekly product digest"| Flag | Description |
|---|---|
--description | List 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"| Flag | Description |
|---|---|
--name | New name |
--description | New 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 --forceenvloped lists members [id]
List the members of a list.
envloped lists members ls_newsletter
envloped lists members ls_newsletter --limit 100 --page 2| Flag | Description |
|---|---|
--limit | Number of results (default: 20) |
--page | Page 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_def456envloped 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_def456API Key Management
envloped keys list
List all API keys for your account.
envloped keys list
envloped keys list --jsonenvloped 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" --jsonenvloped keys delete [id]
Delete an API key. Requires confirmation unless --force is used.
envloped keys delete abc123
envloped keys delete abc123 --forceConfiguration
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.comenvloped config get [key]
Get a configuration value.
envloped config get default_fromValid 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 | sourceOther
envloped version
Print the CLI version, commit, and build date.
envloped version
# envloped v0.1.0 (commit: abc123, built: 2026-03-28)