CLI Getting Started
Install the Envloped CLI and send your first email in minutes.
Envloped CLI
The Envloped CLI lets you send emails, manage domains, and API keys directly from your terminal or CI/CD pipelines.
Installation
curl (Linux / macOS)
curl -fsSL https://envloped.com/install.sh | bashManual download
Download the latest binary from GitHub Releases for your platform.
Quick Start
1. Authenticate
envloped login --api-key en_YOUR_API_KEYOr interactively:
envloped login
> Paste your API key: ****
> Logged in as you@company.com at Company (pro plan)2. Send your first email
envloped send \
--from hello@yourdomain.com \
--to user@example.com \
--subject "Hello from the CLI" \
--text "This email was sent from the terminal!"3. Check status
envloped emails listConfiguration
Configuration is stored in ~/.config/envloped/config.toml. Set defaults:
envloped config set default_from hello@yourdomain.com
envloped config set api_url https://api.envloped.comEnvironment Variables
For CI/CD, use environment variables instead of envloped login:
| Variable | Description |
|---|---|
ENVLOPED_API_KEY | API key for authentication |
ENVLOPED_API_URL | Override API base URL |
ENVLOPED_PROFILE | Configuration profile to use |
Global Flags
All commands support these flags:
| Flag | Description |
|---|---|
--json | Output in JSON format (for piping to jq, scripts, etc.) |
--quiet | Suppress non-essential output |
--api-key | Override API key for this command |
--profile | Use a specific configuration profile |
--api-url | Override API base URL |