@wraps.dev/cli 1.5.0 → 1.5.1
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 +63 -0
- package/dist/cli.js +247 -2
- package/dist/cli.js.map +1 -1
- package/dist/lambda/event-processor/.bundled +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **Zero Configuration**: One command deploys everything you need
|
|
8
|
+
- **Preview Mode**: See what changes would be made before deploying with `--preview`
|
|
8
9
|
- **OIDC Support**: Vercel integration with no AWS credentials needed
|
|
9
10
|
- **Non-Destructive**: Never modifies existing resources
|
|
10
11
|
- **Beautiful UX**: Built with Bomb.sh stack (@clack/prompts) - beautiful interactive prompts and spinners
|
|
@@ -97,6 +98,55 @@ Shows:
|
|
|
97
98
|
- Deployed resources
|
|
98
99
|
- Links to dashboard
|
|
99
100
|
|
|
101
|
+
## Global Options
|
|
102
|
+
|
|
103
|
+
These options work across all deployment commands:
|
|
104
|
+
|
|
105
|
+
| Option | Description |
|
|
106
|
+
|--------|-------------|
|
|
107
|
+
| `-p, --provider` | Hosting provider (vercel, aws, railway, other) |
|
|
108
|
+
| `-r, --region` | AWS region |
|
|
109
|
+
| `-d, --domain` | Domain name |
|
|
110
|
+
| `--preset` | Configuration preset |
|
|
111
|
+
| `-y, --yes` | Skip confirmation prompts |
|
|
112
|
+
| `-f, --force` | Force destructive operations |
|
|
113
|
+
| `--preview` | Preview changes without deploying |
|
|
114
|
+
|
|
115
|
+
### Preview Mode
|
|
116
|
+
|
|
117
|
+
Use `--preview` to see what infrastructure changes would be made without actually deploying. This is useful for:
|
|
118
|
+
|
|
119
|
+
- **Reviewing changes** before applying them
|
|
120
|
+
- **Cost estimation** - see estimated monthly costs
|
|
121
|
+
- **CI/CD pipelines** - validate deployments in dry-run mode
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Preview new deployment
|
|
125
|
+
wraps email init --preview
|
|
126
|
+
|
|
127
|
+
# Preview upgrade changes
|
|
128
|
+
wraps email upgrade --preview
|
|
129
|
+
|
|
130
|
+
# Preview what would be destroyed
|
|
131
|
+
wraps destroy --preview
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Example output:**
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
--- PREVIEW MODE (no changes will be made) ---
|
|
138
|
+
|
|
139
|
+
Resource Changes:
|
|
140
|
+
+ 8 to create
|
|
141
|
+
|
|
142
|
+
Estimated Monthly Cost:
|
|
143
|
+
~$2.50/mo (based on 10,000 emails/month)
|
|
144
|
+
|
|
145
|
+
--- END PREVIEW (no changes were made) ---
|
|
146
|
+
|
|
147
|
+
Preview complete. Run without --preview to deploy.
|
|
148
|
+
```
|
|
149
|
+
|
|
100
150
|
## Commands
|
|
101
151
|
|
|
102
152
|
### Email Commands
|
|
@@ -111,6 +161,7 @@ Deploy new email infrastructure to your AWS account.
|
|
|
111
161
|
- `-d, --domain <domain>` - Domain to verify (optional)
|
|
112
162
|
- `--preset <preset>` - Configuration preset (starter, production, enterprise, custom)
|
|
113
163
|
- `-y, --yes` - Skip confirmation prompts
|
|
164
|
+
- `--preview` - Preview changes without deploying
|
|
114
165
|
|
|
115
166
|
**Examples:**
|
|
116
167
|
|
|
@@ -118,6 +169,9 @@ Deploy new email infrastructure to your AWS account.
|
|
|
118
169
|
# Interactive mode (recommended)
|
|
119
170
|
wraps email init
|
|
120
171
|
|
|
172
|
+
# Preview what would be deployed (no changes made)
|
|
173
|
+
wraps email init --preview
|
|
174
|
+
|
|
121
175
|
# With flags
|
|
122
176
|
wraps email init --provider vercel --region us-east-1 --domain myapp.com --preset production
|
|
123
177
|
```
|
|
@@ -207,11 +261,15 @@ Add features to existing infrastructure incrementally without redeployment.
|
|
|
207
261
|
**Options:**
|
|
208
262
|
- `-r, --region <region>` - AWS region (uses saved connection if not specified)
|
|
209
263
|
- `-y, --yes` - Skip confirmation prompts
|
|
264
|
+
- `--preview` - Preview changes without deploying
|
|
210
265
|
|
|
211
266
|
**Example:**
|
|
212
267
|
|
|
213
268
|
```bash
|
|
214
269
|
wraps email upgrade
|
|
270
|
+
|
|
271
|
+
# Preview upgrade changes before applying
|
|
272
|
+
wraps email upgrade --preview
|
|
215
273
|
```
|
|
216
274
|
|
|
217
275
|
Interactive wizard allows you to add:
|
|
@@ -255,11 +313,13 @@ Restore infrastructure from saved metadata.
|
|
|
255
313
|
**Options:**
|
|
256
314
|
- `-r, --region <region>` - AWS region to restore from
|
|
257
315
|
- `-f, --force` - Force restore without confirmation (destructive)
|
|
316
|
+
- `--preview` - Preview what would be removed without making changes
|
|
258
317
|
|
|
259
318
|
**Example:**
|
|
260
319
|
|
|
261
320
|
```bash
|
|
262
321
|
wraps email restore
|
|
322
|
+
wraps email restore --preview # Preview what would be removed
|
|
263
323
|
wraps email restore --region us-west-2 --force # Skip confirmation
|
|
264
324
|
```
|
|
265
325
|
|
|
@@ -312,11 +372,13 @@ Remove all deployed infrastructure across all services.
|
|
|
312
372
|
|
|
313
373
|
**Options:**
|
|
314
374
|
- `-f, --force` - Force destroy without confirmation (destructive)
|
|
375
|
+
- `--preview` - Preview what would be destroyed without making changes
|
|
315
376
|
|
|
316
377
|
**Example:**
|
|
317
378
|
|
|
318
379
|
```bash
|
|
319
380
|
wraps destroy
|
|
381
|
+
wraps destroy --preview # Preview what would be destroyed
|
|
320
382
|
wraps destroy --force # Skip confirmation
|
|
321
383
|
```
|
|
322
384
|
|
|
@@ -561,6 +623,7 @@ wraps init
|
|
|
561
623
|
- [ ] `wraps sms init` - Deploy SMS infrastructure
|
|
562
624
|
|
|
563
625
|
### Features ✅
|
|
626
|
+
- [x] Preview mode (`--preview`) for all deployment commands
|
|
564
627
|
- [x] Feature-based configuration presets (Starter, Production, Enterprise, Custom)
|
|
565
628
|
- [x] Transparent cost estimation with monthly projections
|
|
566
629
|
- [x] MAIL FROM domain configuration for DMARC alignment
|