@mailmodo/cli 0.0.40-beta.pr42.67 → 0.0.41-beta.pr43.68

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.
@@ -51,6 +51,16 @@ export default class Domain extends BaseCommand {
51
51
  */
52
52
  async setupDomain(flags) {
53
53
  const yamlConfig = await this.ensureYaml();
54
+ const existingDomain = yamlConfig.project?.domain;
55
+ if (existingDomain) {
56
+ if (flags.json) {
57
+ this.log(JSON.stringify({ domain: existingDomain, status: 'pending_verification' }, null, 2));
58
+ return;
59
+ }
60
+ this.log(`\n Domain already configured: ${chalk.cyan(existingDomain)}`);
61
+ this.log(` ${INFO.DOMAIN_PENDING_VERIFICATION}\n`);
62
+ return;
63
+ }
54
64
  this.log(`\n ${SEPARATOR}`);
55
65
  this.log(` ${chalk.bold('DOMAIN SETUP')}`);
56
66
  this.log(` ${SEPARATOR}\n`);
@@ -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: `Domain is not verified yet. 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: `Domain is not verified yet. 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) {
@@ -365,12 +365,13 @@
365
365
  "index.js"
366
366
  ]
367
367
  },
368
- "logout": {
368
+ "login": {
369
369
  "aliases": [],
370
370
  "args": {},
371
- "description": "Sign out by removing saved credentials from this machine",
371
+ "description": "Authenticate with Mailmodo using your API key",
372
372
  "examples": [
373
- "<%= config.bin %> logout"
373
+ "<%= config.bin %> login",
374
+ "MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
374
375
  ],
375
376
  "flags": {
376
377
  "json": {
@@ -389,7 +390,7 @@
389
390
  },
390
391
  "hasDynamicHelp": false,
391
392
  "hiddenAliases": [],
392
- "id": "logout",
393
+ "id": "login",
393
394
  "pluginAlias": "@mailmodo/cli",
394
395
  "pluginName": "@mailmodo/cli",
395
396
  "pluginType": "core",
@@ -399,17 +400,16 @@
399
400
  "relativePath": [
400
401
  "dist",
401
402
  "commands",
402
- "logout",
403
+ "login",
403
404
  "index.js"
404
405
  ]
405
406
  },
406
- "login": {
407
+ "logout": {
407
408
  "aliases": [],
408
409
  "args": {},
409
- "description": "Authenticate with Mailmodo using your API key",
410
+ "description": "Sign out by removing saved credentials from this machine",
410
411
  "examples": [
411
- "<%= config.bin %> login",
412
- "MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
412
+ "<%= config.bin %> logout"
413
413
  ],
414
414
  "flags": {
415
415
  "json": {
@@ -428,7 +428,7 @@
428
428
  },
429
429
  "hasDynamicHelp": false,
430
430
  "hiddenAliases": [],
431
- "id": "login",
431
+ "id": "logout",
432
432
  "pluginAlias": "@mailmodo/cli",
433
433
  "pluginName": "@mailmodo/cli",
434
434
  "pluginType": "core",
@@ -438,7 +438,7 @@
438
438
  "relativePath": [
439
439
  "dist",
440
440
  "commands",
441
- "login",
441
+ "logout",
442
442
  "index.js"
443
443
  ]
444
444
  },
@@ -657,5 +657,5 @@
657
657
  ]
658
658
  }
659
659
  },
660
- "version": "0.0.40-beta.pr42.67"
660
+ "version": "0.0.41-beta.pr43.68"
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-beta.pr42.67",
4
+ "version": "0.0.41-beta.pr43.68",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"