@mailmodo/cli 0.0.40 → 0.0.41-beta.pr43.70

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.
@@ -138,9 +138,15 @@ export default class Deploy extends BaseCommand {
138
138
  if (domainVerify.ok && domainVerify.data?.domainStatus === 'VERIFIED') {
139
139
  return true;
140
140
  }
141
+ if (yamlConfig.project?.domain) {
142
+ if (!flags.json) {
143
+ this.log(`\n ${INFO.DOMAIN_PENDING_VERIFICATION}\n`);
144
+ }
145
+ return false;
146
+ }
141
147
  if (!flags.json) {
142
- this.log(`\n No sending domain verified yet.`);
143
- this.log(` You need to verify a domain before sending emails.`);
148
+ this.log(`\n No sending domain set up yet.`);
149
+ this.log(` You need a verified domain before sending emails.`);
144
150
  this.log(` This is a one-time setup. Takes about 5 minutes.\n`);
145
151
  }
146
152
  if (!flags.yes) {
@@ -8,10 +8,16 @@ import { API_ENDPOINTS, LOGIN_URL } from '../../lib/constants.js';
8
8
  import { INFO } from '../../lib/messages.js';
9
9
  export default class Login extends BaseCommand {
10
10
  static description = 'Authenticate with Mailmodo using your API key';
11
- static examples = [
12
- '<%= config.bin %> login',
13
- 'MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login',
14
- ];
11
+ static examples = process.platform === 'win32'
12
+ ? [
13
+ '<%= config.bin %> login',
14
+ '$env:MAILMODO_API_KEY="YOUR_API_KEY"; <%= config.bin %> login # PowerShell',
15
+ 'set MAILMODO_API_KEY=YOUR_API_KEY && <%= config.bin %> login # CMD',
16
+ ]
17
+ : [
18
+ '<%= config.bin %> login',
19
+ 'MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login',
20
+ ];
15
21
  static flags = {
16
22
  ...BaseCommand.baseFlags,
17
23
  };
@@ -31,6 +31,7 @@ export declare const INFO: {
31
31
  readonly DNS_RECORDS_FAILED: string;
32
32
  readonly DOMAIN_NOT_DEPLOYED_HINT: `When ready, run: ${string}
33
33
  Then: ${string}`;
34
+ readonly DOMAIN_PENDING_VERIFICATION: `Your domain is not verified yet. Please verify it first. Run ${string} to check the status.`;
34
35
  readonly SEQUENCES_NOT_DEPLOYED: `Sequences saved but ${string}.`;
35
36
  };
36
37
  export declare function recordLabel(index: number): string;
@@ -31,6 +31,7 @@ export const INFO = {
31
31
  DNS_PROPAGATION: 'DNS changes take 5–30 minutes to propagate.',
32
32
  DNS_RECORDS_FAILED: chalk.yellow('Some records failed.'),
33
33
  DOMAIN_NOT_DEPLOYED_HINT: `When ready, run: ${chalk.cyan('mailmodo domain')}\n Then: ${chalk.cyan('mailmodo deploy')}`,
34
+ DOMAIN_PENDING_VERIFICATION: `Your domain is not verified yet. Please verify it first. Run ${chalk.cyan('mailmodo domain --verify')} to check the status.`,
34
35
  SEQUENCES_NOT_DEPLOYED: `Sequences saved but ${chalk.yellow('NOT deployed')}.`,
35
36
  };
36
37
  export function recordLabel(index) {
@@ -228,6 +228,45 @@
228
228
  "index.js"
229
229
  ]
230
230
  },
231
+ "emails": {
232
+ "aliases": [],
233
+ "args": {},
234
+ "description": "List and view configured email sequences",
235
+ "examples": [
236
+ "<%= config.bin %> emails",
237
+ "<%= config.bin %> emails --json"
238
+ ],
239
+ "flags": {
240
+ "json": {
241
+ "description": "Output as JSON",
242
+ "name": "json",
243
+ "allowNo": false,
244
+ "type": "boolean"
245
+ },
246
+ "yes": {
247
+ "char": "y",
248
+ "description": "Skip confirmation prompts",
249
+ "name": "yes",
250
+ "allowNo": false,
251
+ "type": "boolean"
252
+ }
253
+ },
254
+ "hasDynamicHelp": false,
255
+ "hiddenAliases": [],
256
+ "id": "emails",
257
+ "pluginAlias": "@mailmodo/cli",
258
+ "pluginName": "@mailmodo/cli",
259
+ "pluginType": "core",
260
+ "strict": true,
261
+ "enableJsonFlag": false,
262
+ "isESM": true,
263
+ "relativePath": [
264
+ "dist",
265
+ "commands",
266
+ "emails",
267
+ "index.js"
268
+ ]
269
+ },
231
270
  "edit": {
232
271
  "aliases": [],
233
272
  "args": {
@@ -280,13 +319,13 @@
280
319
  "index.js"
281
320
  ]
282
321
  },
283
- "emails": {
322
+ "init": {
284
323
  "aliases": [],
285
324
  "args": {},
286
- "description": "List and view configured email sequences",
325
+ "description": "Analyze your product and generate email sequences",
287
326
  "examples": [
288
- "<%= config.bin %> emails",
289
- "<%= config.bin %> emails --json"
327
+ "<%= config.bin %> init",
328
+ "<%= config.bin %> init --url https://myapp.com --yes"
290
329
  ],
291
330
  "flags": {
292
331
  "json": {
@@ -301,11 +340,18 @@
301
340
  "name": "yes",
302
341
  "allowNo": false,
303
342
  "type": "boolean"
343
+ },
344
+ "url": {
345
+ "description": "Product URL to analyze",
346
+ "name": "url",
347
+ "hasDynamicHelp": false,
348
+ "multiple": false,
349
+ "type": "option"
304
350
  }
305
351
  },
306
352
  "hasDynamicHelp": false,
307
353
  "hiddenAliases": [],
308
- "id": "emails",
354
+ "id": "init",
309
355
  "pluginAlias": "@mailmodo/cli",
310
356
  "pluginName": "@mailmodo/cli",
311
357
  "pluginType": "core",
@@ -315,17 +361,17 @@
315
361
  "relativePath": [
316
362
  "dist",
317
363
  "commands",
318
- "emails",
364
+ "init",
319
365
  "index.js"
320
366
  ]
321
367
  },
322
- "init": {
368
+ "login": {
323
369
  "aliases": [],
324
370
  "args": {},
325
- "description": "Analyze your product and generate email sequences",
371
+ "description": "Authenticate with Mailmodo using your API key",
326
372
  "examples": [
327
- "<%= config.bin %> init",
328
- "<%= config.bin %> init --url https://myapp.com --yes"
373
+ "<%= config.bin %> login",
374
+ "MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
329
375
  ],
330
376
  "flags": {
331
377
  "json": {
@@ -340,18 +386,11 @@
340
386
  "name": "yes",
341
387
  "allowNo": false,
342
388
  "type": "boolean"
343
- },
344
- "url": {
345
- "description": "Product URL to analyze",
346
- "name": "url",
347
- "hasDynamicHelp": false,
348
- "multiple": false,
349
- "type": "option"
350
389
  }
351
390
  },
352
391
  "hasDynamicHelp": false,
353
392
  "hiddenAliases": [],
354
- "id": "init",
393
+ "id": "login",
355
394
  "pluginAlias": "@mailmodo/cli",
356
395
  "pluginName": "@mailmodo/cli",
357
396
  "pluginType": "core",
@@ -361,17 +400,16 @@
361
400
  "relativePath": [
362
401
  "dist",
363
402
  "commands",
364
- "init",
403
+ "login",
365
404
  "index.js"
366
405
  ]
367
406
  },
368
- "login": {
407
+ "logout": {
369
408
  "aliases": [],
370
409
  "args": {},
371
- "description": "Authenticate with Mailmodo using your API key",
410
+ "description": "Sign out by removing saved credentials from this machine",
372
411
  "examples": [
373
- "<%= config.bin %> login",
374
- "MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login"
412
+ "<%= config.bin %> logout"
375
413
  ],
376
414
  "flags": {
377
415
  "json": {
@@ -390,7 +428,7 @@
390
428
  },
391
429
  "hasDynamicHelp": false,
392
430
  "hiddenAliases": [],
393
- "id": "login",
431
+ "id": "logout",
394
432
  "pluginAlias": "@mailmodo/cli",
395
433
  "pluginName": "@mailmodo/cli",
396
434
  "pluginType": "core",
@@ -400,7 +438,7 @@
400
438
  "relativePath": [
401
439
  "dist",
402
440
  "commands",
403
- "login",
441
+ "logout",
404
442
  "index.js"
405
443
  ]
406
444
  },
@@ -474,44 +512,6 @@
474
512
  "index.js"
475
513
  ]
476
514
  },
477
- "logout": {
478
- "aliases": [],
479
- "args": {},
480
- "description": "Sign out by removing saved credentials from this machine",
481
- "examples": [
482
- "<%= config.bin %> logout"
483
- ],
484
- "flags": {
485
- "json": {
486
- "description": "Output as JSON",
487
- "name": "json",
488
- "allowNo": false,
489
- "type": "boolean"
490
- },
491
- "yes": {
492
- "char": "y",
493
- "description": "Skip confirmation prompts",
494
- "name": "yes",
495
- "allowNo": false,
496
- "type": "boolean"
497
- }
498
- },
499
- "hasDynamicHelp": false,
500
- "hiddenAliases": [],
501
- "id": "logout",
502
- "pluginAlias": "@mailmodo/cli",
503
- "pluginName": "@mailmodo/cli",
504
- "pluginType": "core",
505
- "strict": true,
506
- "enableJsonFlag": false,
507
- "isESM": true,
508
- "relativePath": [
509
- "dist",
510
- "commands",
511
- "logout",
512
- "index.js"
513
- ]
514
- },
515
515
  "preview": {
516
516
  "aliases": [],
517
517
  "args": {
@@ -657,5 +657,5 @@
657
657
  ]
658
658
  }
659
659
  },
660
- "version": "0.0.40"
660
+ "version": "0.0.41-beta.pr43.70"
661
661
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mailmodo/cli",
3
3
  "description": "Email lifecycle automation for the AI-native builder generation.",
4
- "version": "0.0.40",
4
+ "version": "0.0.41-beta.pr43.70",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"