Wraps Logo
CLI Reference / Email

Email Commands

Deploy and manage AWS SES email infrastructure with event tracking, analytics, and domain management.

wraps email init

Deploy new email infrastructure to your AWS account. This is the primary command for setting up Wraps email for the first time.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email init [options]
Options
-d, --domain <domain>

Domain to configure for sending emails (e.g., yourdomain.com)

-r, --region <region>

AWS region to deploy infrastructure (default: us-east-1)

--preset <preset>

Configuration preset: starter, production, enterprise, or custom

-p, --provider <provider>

Hosting provider: vercel, lambda, ecs, or ec2

--preview

Preview infrastructure changes without deploying

What It Does
  • Validates your AWS credentials and account access
  • Prompts for configuration preferences (if not provided via flags)
  • Shows estimated monthly AWS costs based on selected features
  • Deploys AWS SES, DynamoDB, Lambda, EventBridge, SQS, and IAM roles
  • Sets up OIDC provider for Vercel deployments (if selected)
  • Creates configuration metadata for future commands
  • Takes 1-2 minutes to complete
Examples

Interactive setup (recommended for first time):

GNU Bashterminal.sh
npx @wraps.dev/cli email init

Non-interactive with all options:

GNU Bashterminal.sh
npx @wraps.dev/cli email init --domain yourdomain.com --region us-west-2 --preset production --provider vercel

wraps email status

Display detailed status for email infrastructure, including SES domains, verification status, and configuration details.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email status
What It Displays
  • SES domain verification and DKIM status
  • MAIL FROM domain configuration
  • Active features and preset
  • Deployed AWS resources
  • DNS records that need configuration

wraps email domains

Manage domains in AWS SES. Add domains, list all configured domains, retrieve DKIM tokens, verify DNS records, and remove domains from SES.

wraps email domains add

Add a new domain to AWS SES with DKIM signing enabled.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email domains add -d <domain>
Options
  • -d, --domain <domain> (required) Domain name to add

wraps email domains list

List all domains configured in AWS SES with their verification and DKIM status.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email domains list

wraps email domains get-dkim

Retrieve DKIM tokens for a domain to configure DNS records.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email domains get-dkim -d <domain>
Options
  • -d, --domain <domain> (required) Domain name to get DKIM tokens for

wraps email domains verify

Check the DNS verification status of a domain, including DKIM, SPF, and DMARC records.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email domains verify -d <domain>
What It Checks
  • SES domain verification status
  • DKIM DNS records (3 CNAME records)
  • SPF record (TXT record for sender verification)
  • DMARC record (TXT record for email authentication policy)
  • MAIL FROM MX records (if custom MAIL FROM configured)
  • Provides copy-paste ready DNS record values

wraps email domains remove

Remove a domain from AWS SES. This action cannot be undone.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email domains remove -d <domain>
Options
  • -d, --domain <domain> (required) Domain name to remove
  • -f, --force Skip confirmation prompt

wraps email connect

Connect to existing AWS SES resources and add Wraps features non-destructively. Never modifies your existing SES setup.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email connect [options]
Options
--region <region>

AWS region to scan for existing resources

--preview

Preview infrastructure changes without deploying

What It Does
  • Scans existing SES domains and configuration sets
  • Prompts for which features to add
  • Creates new resources with wraps- prefix
  • Never modifies or deletes existing resources
  • Configures event tracking and analytics

wraps email upgrade

Add additional features to your existing Wraps deployment. Upgrade from Starter to Production, or add individual features incrementally.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email upgrade [options]
What It Does
  • Shows currently enabled features
  • Prompts for additional features to enable
  • Deploys new resources incrementally
  • Updates IAM policies with new permissions
  • Shows updated cost estimates
Example Upgrades
  • Starter → Production: Adds real-time event tracking and 90-day history
  • Production → Enterprise: Adds dedicated IP and 1-year history retention
  • Add individual features: Enable specific event types or extend storage

wraps email sync

Synchronize your local configuration with deployed infrastructure. Useful after CLI updates.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email sync [options]
What It Does
  • Detects differences between local config and deployed infrastructure
  • Applies CLI updates (bug fixes, new features) to resources
  • Updates Lambda functions and IAM policies
  • Does not change your configuration preset or features

wraps email restore

Restore Wraps deployment from existing metadata. Useful if you've lost local configuration but infrastructure still exists in AWS.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email restore [options]
What It Does
  • Scans AWS for existing Wraps resources
  • Reconstructs deployment metadata
  • Re-imports Pulumi stack state
  • Restores local configuration

wraps email destroy

Remove email infrastructure. Use this to remove only the email service while keeping other services intact.

Usage
GNU Bashterminal.sh
npx @wraps.dev/cli email destroy [options]
Options
-f, --force

Skip confirmation prompt (use with caution)

--preview

Preview what would be destroyed without making changes

What It Removes
  • Email-specific IAM roles and policies
  • DynamoDB tables (email history will be lost)
  • Lambda functions for event processing
  • EventBridge rules and SQS queues
  • Route53 DNS records (DKIM, DMARC, MAIL FROM) if confirmed
  • Local metadata for email service