# CLI Reference

The Wraps CLI deploys and manages communication infrastructure on AWS. Install via npx (no global install needed).

## Global Usage

```bash
npx @wraps.dev/cli <service> <command> [options]
```

## Services

| Service | Description |
|---------|-------------|
| `email` | AWS SES email infrastructure |
| `sms` | AWS End User Messaging SMS infrastructure |
| `cdn` | S3 + CloudFront CDN infrastructure |
| `auth` | OIDC authentication management |
| `platform` | Wraps Platform connection |

## Quick Reference

```bash
# Email
npx @wraps.dev/cli email init                          # Deploy email stack
npx @wraps.dev/cli email status                        # Check deployment status
npx @wraps.dev/cli email destroy                       # Tear down all resources
npx @wraps.dev/cli email domains add -d domain.com     # Add domain to SES
npx @wraps.dev/cli email domains list                  # List domains
npx @wraps.dev/cli email domains verify -d domain.com  # Verify DNS records
npx @wraps.dev/cli email domains get-dkim -d domain.com # Get DKIM tokens
npx @wraps.dev/cli email domains remove -d domain.com  # Remove domain
npx @wraps.dev/cli email domains config                # Configure domain settings

# SMS
npx @wraps.dev/cli sms init     # Deploy SMS stack
npx @wraps.dev/cli sms status   # Check SMS deployment
npx @wraps.dev/cli sms destroy  # Tear down SMS resources

# CDN
npx @wraps.dev/cli cdn init     # Deploy CDN (S3 + CloudFront)
npx @wraps.dev/cli cdn status   # Check CDN deployment
npx @wraps.dev/cli cdn destroy  # Tear down CDN resources

# Dashboard
npx @wraps.dev/cli dashboard    # Open local analytics dashboard
```

## Detailed References

- [Email Commands](https://wraps.dev/docs/cli-reference/email)
- [SMS Commands](https://wraps.dev/docs/cli-reference/sms)
- [CDN Commands](https://wraps.dev/docs/cli-reference/cdn)
- [Auth Commands](https://wraps.dev/docs/cli-reference/auth)
- [Platform Commands](https://wraps.dev/docs/cli-reference/platform)
