@wraps.dev/cli 2.3.4 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -474,6 +474,61 @@ The CLI offers four presets that control which AWS resources are created:
474
474
  ### Custom
475
475
  Select individual features. Useful if you want event storage without a dedicated IP, or specific event types only.
476
476
 
477
+ ## Automatic DNS Management
478
+
479
+ During `wraps email init` and `wraps email upgrade`, the CLI can automatically create DNS records (DKIM, SPF, DMARC, MX) for your domain. Set the appropriate environment variable for your DNS provider:
480
+
481
+ ### Supported DNS Providers
482
+
483
+ | Provider | Environment Variable | Optional |
484
+ |----------|---------------------|----------|
485
+ | AWS Route53 | *(uses AWS credentials)* | `AWS_PROFILE` |
486
+ | Vercel DNS | `VERCEL_TOKEN` | `VERCEL_TEAM_ID` |
487
+ | Cloudflare | `CLOUDFLARE_API_TOKEN` | `CLOUDFLARE_ZONE_ID` |
488
+
489
+ ### Setup
490
+
491
+ **Vercel DNS:**
492
+ ```bash
493
+ # Create token at: https://vercel.com/account/tokens
494
+ export VERCEL_TOKEN=your_token_here
495
+
496
+ # Optional: specify team (for team accounts)
497
+ export VERCEL_TEAM_ID=team_xxxxx
498
+ ```
499
+
500
+ **Cloudflare:**
501
+ ```bash
502
+ # Create token at: https://dash.cloudflare.com/profile/api-tokens
503
+ # Token needs: Zone.DNS (Edit) permission
504
+ export CLOUDFLARE_API_TOKEN=your_token_here
505
+
506
+ # Optional: specify zone ID (auto-detected if not set)
507
+ export CLOUDFLARE_ZONE_ID=your_zone_id
508
+ ```
509
+
510
+ **AWS Route53:**
511
+ ```bash
512
+ # Uses your existing AWS credentials
513
+ # No additional setup required if you have a hosted zone for your domain
514
+ aws configure
515
+ ```
516
+
517
+ ### Manual DNS
518
+
519
+ If you don't set up a DNS provider token, the CLI will show you the DNS records to add manually:
520
+
521
+ ```
522
+ Add these DNS records to your DNS provider:
523
+
524
+ CNAME abc123._domainkey.example.com
525
+ abc123.dkim.amazonses.com
526
+ TXT example.com
527
+ "v=spf1 include:amazonses.com ~all"
528
+ TXT _dmarc.example.com
529
+ "v=DMARC1; p=quarantine; rua=mailto:postmaster@example.com"
530
+ ```
531
+
477
532
  ## Hosting Provider Integration
478
533
 
479
534
  ### Vercel