@mailmodo/cli 0.0.3-beta.pr5.7 → 0.0.3
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/dist/commands/login/index.d.ts +2 -6
- package/dist/commands/login/index.js +6 -62
- package/oclif.manifest.json +4 -559
- package/package.json +8 -7
- package/dist/commands/billing/index.d.ts +0 -26
- package/dist/commands/billing/index.js +0 -92
- package/dist/commands/contacts/index.d.ts +0 -32
- package/dist/commands/contacts/index.js +0 -134
- package/dist/commands/deploy/index.d.ts +0 -25
- package/dist/commands/deploy/index.js +0 -194
- package/dist/commands/domain/index.d.ts +0 -27
- package/dist/commands/domain/index.js +0 -163
- package/dist/commands/edit/index.d.ts +0 -14
- package/dist/commands/edit/index.js +0 -96
- package/dist/commands/emails/index.d.ts +0 -10
- package/dist/commands/emails/index.js +0 -62
- package/dist/commands/init/index.d.ts +0 -11
- package/dist/commands/init/index.js +0 -124
- package/dist/commands/logs/index.d.ts +0 -20
- package/dist/commands/logs/index.js +0 -82
- package/dist/commands/preview/index.d.ts +0 -30
- package/dist/commands/preview/index.js +0 -213
- package/dist/commands/settings/index.d.ts +0 -19
- package/dist/commands/settings/index.js +0 -147
- package/dist/commands/status/index.d.ts +0 -10
- package/dist/commands/status/index.js +0 -53
- package/dist/lib/api-client.d.ts +0 -41
- package/dist/lib/api-client.js +0 -125
- package/dist/lib/base-command.d.ts +0 -45
- package/dist/lib/base-command.js +0 -69
- package/dist/lib/config.d.ts +0 -30
- package/dist/lib/config.js +0 -47
- package/dist/lib/constants.d.ts +0 -27
- package/dist/lib/constants.js +0 -27
- package/dist/lib/yaml-config.d.ts +0 -65
- package/dist/lib/yaml-config.js +0 -70
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default class Login extends
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class Login extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
|
-
static flags: {
|
|
6
|
-
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
};
|
|
9
5
|
run(): Promise<void>;
|
|
10
6
|
}
|
|
@@ -1,65 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { ApiClient } from '../../lib/api-client.js';
|
|
6
|
-
import { saveConfig } from '../../lib/config.js';
|
|
7
|
-
import { API_ENDPOINTS, SIGNUP_URL } from '../../lib/constants.js';
|
|
8
|
-
export default class Login extends BaseCommand {
|
|
9
|
-
static description = 'Authenticate with Mailmodo using your API key';
|
|
10
|
-
static examples = [
|
|
11
|
-
'<%= config.bin %> login',
|
|
12
|
-
'MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login',
|
|
13
|
-
];
|
|
14
|
-
static flags = {
|
|
15
|
-
...BaseCommand.baseFlags,
|
|
16
|
-
};
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class Login extends Command {
|
|
3
|
+
static description = 'Login to Mailmodo';
|
|
4
|
+
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
17
5
|
async run() {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (apiKey) {
|
|
21
|
-
this.log('Detected MAILMODO_API_KEY from environment.');
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
this.log(`\n Get your free API key at: ${chalk.cyan(SIGNUP_URL)}\n`);
|
|
25
|
-
try {
|
|
26
|
-
await open(SIGNUP_URL);
|
|
27
|
-
this.log(' Opening in browser...\n');
|
|
28
|
-
}
|
|
29
|
-
catch {
|
|
30
|
-
this.log(` ${chalk.dim('Could not open browser. Visit the URL above manually.')}\n`);
|
|
31
|
-
}
|
|
32
|
-
apiKey = await input({
|
|
33
|
-
message: 'Paste your API key:',
|
|
34
|
-
validate(value) {
|
|
35
|
-
if (!value?.trim())
|
|
36
|
-
return 'API key is required';
|
|
37
|
-
if (!value.startsWith('mm_'))
|
|
38
|
-
return 'Invalid API key format. Keys start with mm_';
|
|
39
|
-
return true;
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
const trimmedKey = apiKey.trim();
|
|
44
|
-
const client = new ApiClient(trimmedKey);
|
|
45
|
-
const response = await client.get(API_ENDPOINTS.AUTH_VALIDATE);
|
|
46
|
-
if (!response.ok) {
|
|
47
|
-
this.handleApiError(response);
|
|
48
|
-
}
|
|
49
|
-
const { accountName, email, freeRemaining } = response.data;
|
|
50
|
-
await saveConfig({
|
|
51
|
-
accountName,
|
|
52
|
-
apiKey: trimmedKey,
|
|
53
|
-
email,
|
|
54
|
-
freeRemaining,
|
|
55
|
-
});
|
|
56
|
-
if (flags.json) {
|
|
57
|
-
this.log(JSON.stringify({ accountName, email, freeRemaining, status: 'authenticated' }, null, 2));
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
this.log(`\n Logged in as ${chalk.green(email)}`);
|
|
61
|
-
this.log(` Free tier: ${chalk.cyan(String(freeRemaining ?? 1000))} emails remaining`);
|
|
62
|
-
this.log(' No credit card required.\n');
|
|
63
|
-
this.log(` Next: Run ${chalk.cyan("'mailmodo init'")} to generate your email sequences.\n`);
|
|
6
|
+
await this.parse(Login);
|
|
7
|
+
this.log('Login to Mailmodo');
|
|
64
8
|
}
|
|
65
9
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,370 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"billing": {
|
|
4
|
-
"aliases": [],
|
|
5
|
-
"args": {},
|
|
6
|
-
"description": "View billing status, manage payment, and set spending cap",
|
|
7
|
-
"examples": [
|
|
8
|
-
"<%= config.bin %> billing",
|
|
9
|
-
"<%= config.bin %> billing --status",
|
|
10
|
-
"<%= config.bin %> billing --cap 5"
|
|
11
|
-
],
|
|
12
|
-
"flags": {
|
|
13
|
-
"json": {
|
|
14
|
-
"description": "Output as JSON",
|
|
15
|
-
"name": "json",
|
|
16
|
-
"allowNo": false,
|
|
17
|
-
"type": "boolean"
|
|
18
|
-
},
|
|
19
|
-
"yes": {
|
|
20
|
-
"char": "y",
|
|
21
|
-
"description": "Skip confirmation prompts",
|
|
22
|
-
"name": "yes",
|
|
23
|
-
"allowNo": false,
|
|
24
|
-
"type": "boolean"
|
|
25
|
-
},
|
|
26
|
-
"cap": {
|
|
27
|
-
"description": "Set monthly block cap (max blocks to auto-charge)",
|
|
28
|
-
"name": "cap",
|
|
29
|
-
"hasDynamicHelp": false,
|
|
30
|
-
"multiple": false,
|
|
31
|
-
"type": "option"
|
|
32
|
-
},
|
|
33
|
-
"status": {
|
|
34
|
-
"description": "Show billing status only",
|
|
35
|
-
"name": "status",
|
|
36
|
-
"allowNo": false,
|
|
37
|
-
"type": "boolean"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"hasDynamicHelp": false,
|
|
41
|
-
"hiddenAliases": [],
|
|
42
|
-
"id": "billing",
|
|
43
|
-
"pluginAlias": "@mailmodo/cli",
|
|
44
|
-
"pluginName": "@mailmodo/cli",
|
|
45
|
-
"pluginType": "core",
|
|
46
|
-
"strict": true,
|
|
47
|
-
"enableJsonFlag": false,
|
|
48
|
-
"isESM": true,
|
|
49
|
-
"relativePath": [
|
|
50
|
-
"dist",
|
|
51
|
-
"commands",
|
|
52
|
-
"billing",
|
|
53
|
-
"index.js"
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"contacts": {
|
|
57
|
-
"aliases": [],
|
|
58
|
-
"args": {},
|
|
59
|
-
"description": "Manage contacts — search, export, or delete",
|
|
60
|
-
"examples": [
|
|
61
|
-
"<%= config.bin %> contacts",
|
|
62
|
-
"<%= config.bin %> contacts --search sarah@example.com",
|
|
63
|
-
"<%= config.bin %> contacts --export",
|
|
64
|
-
"<%= config.bin %> contacts --delete sarah@example.com"
|
|
65
|
-
],
|
|
66
|
-
"flags": {
|
|
67
|
-
"json": {
|
|
68
|
-
"description": "Output as JSON",
|
|
69
|
-
"name": "json",
|
|
70
|
-
"allowNo": false,
|
|
71
|
-
"type": "boolean"
|
|
72
|
-
},
|
|
73
|
-
"yes": {
|
|
74
|
-
"char": "y",
|
|
75
|
-
"description": "Skip confirmation prompts",
|
|
76
|
-
"name": "yes",
|
|
77
|
-
"allowNo": false,
|
|
78
|
-
"type": "boolean"
|
|
79
|
-
},
|
|
80
|
-
"delete": {
|
|
81
|
-
"description": "GDPR hard delete a contact by email",
|
|
82
|
-
"name": "delete",
|
|
83
|
-
"hasDynamicHelp": false,
|
|
84
|
-
"multiple": false,
|
|
85
|
-
"type": "option"
|
|
86
|
-
},
|
|
87
|
-
"export": {
|
|
88
|
-
"description": "Export all contacts as CSV",
|
|
89
|
-
"name": "export",
|
|
90
|
-
"allowNo": false,
|
|
91
|
-
"type": "boolean"
|
|
92
|
-
},
|
|
93
|
-
"search": {
|
|
94
|
-
"description": "Search for a contact by email",
|
|
95
|
-
"name": "search",
|
|
96
|
-
"hasDynamicHelp": false,
|
|
97
|
-
"multiple": false,
|
|
98
|
-
"type": "option"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"hasDynamicHelp": false,
|
|
102
|
-
"hiddenAliases": [],
|
|
103
|
-
"id": "contacts",
|
|
104
|
-
"pluginAlias": "@mailmodo/cli",
|
|
105
|
-
"pluginName": "@mailmodo/cli",
|
|
106
|
-
"pluginType": "core",
|
|
107
|
-
"strict": true,
|
|
108
|
-
"enableJsonFlag": false,
|
|
109
|
-
"isESM": true,
|
|
110
|
-
"relativePath": [
|
|
111
|
-
"dist",
|
|
112
|
-
"commands",
|
|
113
|
-
"contacts",
|
|
114
|
-
"index.js"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"deploy": {
|
|
118
|
-
"aliases": [],
|
|
119
|
-
"args": {},
|
|
120
|
-
"description": "Deploy email sequences and verify sending domain",
|
|
121
|
-
"examples": [
|
|
122
|
-
"<%= config.bin %> deploy",
|
|
123
|
-
"<%= config.bin %> deploy --yes"
|
|
124
|
-
],
|
|
125
|
-
"flags": {
|
|
126
|
-
"json": {
|
|
127
|
-
"description": "Output as JSON",
|
|
128
|
-
"name": "json",
|
|
129
|
-
"allowNo": false,
|
|
130
|
-
"type": "boolean"
|
|
131
|
-
},
|
|
132
|
-
"yes": {
|
|
133
|
-
"char": "y",
|
|
134
|
-
"description": "Skip confirmation prompts",
|
|
135
|
-
"name": "yes",
|
|
136
|
-
"allowNo": false,
|
|
137
|
-
"type": "boolean"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"hasDynamicHelp": false,
|
|
141
|
-
"hiddenAliases": [],
|
|
142
|
-
"id": "deploy",
|
|
143
|
-
"pluginAlias": "@mailmodo/cli",
|
|
144
|
-
"pluginName": "@mailmodo/cli",
|
|
145
|
-
"pluginType": "core",
|
|
146
|
-
"strict": true,
|
|
147
|
-
"enableJsonFlag": false,
|
|
148
|
-
"isESM": true,
|
|
149
|
-
"relativePath": [
|
|
150
|
-
"dist",
|
|
151
|
-
"commands",
|
|
152
|
-
"deploy",
|
|
153
|
-
"index.js"
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
"domain": {
|
|
157
|
-
"aliases": [],
|
|
158
|
-
"args": {},
|
|
159
|
-
"description": "Set up and verify your sending domain",
|
|
160
|
-
"examples": [
|
|
161
|
-
"<%= config.bin %> domain",
|
|
162
|
-
"<%= config.bin %> domain --verify",
|
|
163
|
-
"<%= config.bin %> domain --status"
|
|
164
|
-
],
|
|
165
|
-
"flags": {
|
|
166
|
-
"json": {
|
|
167
|
-
"description": "Output as JSON",
|
|
168
|
-
"name": "json",
|
|
169
|
-
"allowNo": false,
|
|
170
|
-
"type": "boolean"
|
|
171
|
-
},
|
|
172
|
-
"yes": {
|
|
173
|
-
"char": "y",
|
|
174
|
-
"description": "Skip confirmation prompts",
|
|
175
|
-
"name": "yes",
|
|
176
|
-
"allowNo": false,
|
|
177
|
-
"type": "boolean"
|
|
178
|
-
},
|
|
179
|
-
"status": {
|
|
180
|
-
"description": "Show domain health status",
|
|
181
|
-
"name": "status",
|
|
182
|
-
"allowNo": false,
|
|
183
|
-
"type": "boolean"
|
|
184
|
-
},
|
|
185
|
-
"verify": {
|
|
186
|
-
"description": "Verify DNS records",
|
|
187
|
-
"name": "verify",
|
|
188
|
-
"allowNo": false,
|
|
189
|
-
"type": "boolean"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"hasDynamicHelp": false,
|
|
193
|
-
"hiddenAliases": [],
|
|
194
|
-
"id": "domain",
|
|
195
|
-
"pluginAlias": "@mailmodo/cli",
|
|
196
|
-
"pluginName": "@mailmodo/cli",
|
|
197
|
-
"pluginType": "core",
|
|
198
|
-
"strict": true,
|
|
199
|
-
"enableJsonFlag": false,
|
|
200
|
-
"isESM": true,
|
|
201
|
-
"relativePath": [
|
|
202
|
-
"dist",
|
|
203
|
-
"commands",
|
|
204
|
-
"domain",
|
|
205
|
-
"index.js"
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
"emails": {
|
|
209
|
-
"aliases": [],
|
|
210
|
-
"args": {},
|
|
211
|
-
"description": "List and view configured email sequences",
|
|
212
|
-
"examples": [
|
|
213
|
-
"<%= config.bin %> emails",
|
|
214
|
-
"<%= config.bin %> emails --json"
|
|
215
|
-
],
|
|
216
|
-
"flags": {
|
|
217
|
-
"json": {
|
|
218
|
-
"description": "Output as JSON",
|
|
219
|
-
"name": "json",
|
|
220
|
-
"allowNo": false,
|
|
221
|
-
"type": "boolean"
|
|
222
|
-
},
|
|
223
|
-
"yes": {
|
|
224
|
-
"char": "y",
|
|
225
|
-
"description": "Skip confirmation prompts",
|
|
226
|
-
"name": "yes",
|
|
227
|
-
"allowNo": false,
|
|
228
|
-
"type": "boolean"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"hasDynamicHelp": false,
|
|
232
|
-
"hiddenAliases": [],
|
|
233
|
-
"id": "emails",
|
|
234
|
-
"pluginAlias": "@mailmodo/cli",
|
|
235
|
-
"pluginName": "@mailmodo/cli",
|
|
236
|
-
"pluginType": "core",
|
|
237
|
-
"strict": true,
|
|
238
|
-
"enableJsonFlag": false,
|
|
239
|
-
"isESM": true,
|
|
240
|
-
"relativePath": [
|
|
241
|
-
"dist",
|
|
242
|
-
"commands",
|
|
243
|
-
"emails",
|
|
244
|
-
"index.js"
|
|
245
|
-
]
|
|
246
|
-
},
|
|
247
|
-
"edit": {
|
|
248
|
-
"aliases": [],
|
|
249
|
-
"args": {
|
|
250
|
-
"id": {
|
|
251
|
-
"description": "Email ID to edit",
|
|
252
|
-
"name": "id",
|
|
253
|
-
"required": true
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
"description": "Edit an email using AI-assisted natural language changes",
|
|
257
|
-
"examples": [
|
|
258
|
-
"<%= config.bin %> edit welcome",
|
|
259
|
-
"<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
|
|
260
|
-
],
|
|
261
|
-
"flags": {
|
|
262
|
-
"json": {
|
|
263
|
-
"description": "Output as JSON",
|
|
264
|
-
"name": "json",
|
|
265
|
-
"allowNo": false,
|
|
266
|
-
"type": "boolean"
|
|
267
|
-
},
|
|
268
|
-
"yes": {
|
|
269
|
-
"char": "y",
|
|
270
|
-
"description": "Skip confirmation prompts",
|
|
271
|
-
"name": "yes",
|
|
272
|
-
"allowNo": false,
|
|
273
|
-
"type": "boolean"
|
|
274
|
-
},
|
|
275
|
-
"change": {
|
|
276
|
-
"description": "Natural language description of the change",
|
|
277
|
-
"name": "change",
|
|
278
|
-
"hasDynamicHelp": false,
|
|
279
|
-
"multiple": false,
|
|
280
|
-
"type": "option"
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
"hasDynamicHelp": false,
|
|
284
|
-
"hiddenAliases": [],
|
|
285
|
-
"id": "edit",
|
|
286
|
-
"pluginAlias": "@mailmodo/cli",
|
|
287
|
-
"pluginName": "@mailmodo/cli",
|
|
288
|
-
"pluginType": "core",
|
|
289
|
-
"strict": true,
|
|
290
|
-
"enableJsonFlag": false,
|
|
291
|
-
"isESM": true,
|
|
292
|
-
"relativePath": [
|
|
293
|
-
"dist",
|
|
294
|
-
"commands",
|
|
295
|
-
"edit",
|
|
296
|
-
"index.js"
|
|
297
|
-
]
|
|
298
|
-
},
|
|
299
|
-
"init": {
|
|
300
|
-
"aliases": [],
|
|
301
|
-
"args": {},
|
|
302
|
-
"description": "Analyze your product and generate email sequences",
|
|
303
|
-
"examples": [
|
|
304
|
-
"<%= config.bin %> init",
|
|
305
|
-
"<%= config.bin %> init --url https://myapp.com --yes"
|
|
306
|
-
],
|
|
307
|
-
"flags": {
|
|
308
|
-
"json": {
|
|
309
|
-
"description": "Output as JSON",
|
|
310
|
-
"name": "json",
|
|
311
|
-
"allowNo": false,
|
|
312
|
-
"type": "boolean"
|
|
313
|
-
},
|
|
314
|
-
"yes": {
|
|
315
|
-
"char": "y",
|
|
316
|
-
"description": "Skip confirmation prompts",
|
|
317
|
-
"name": "yes",
|
|
318
|
-
"allowNo": false,
|
|
319
|
-
"type": "boolean"
|
|
320
|
-
},
|
|
321
|
-
"url": {
|
|
322
|
-
"description": "Product URL to analyze",
|
|
323
|
-
"name": "url",
|
|
324
|
-
"hasDynamicHelp": false,
|
|
325
|
-
"multiple": false,
|
|
326
|
-
"type": "option"
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"hasDynamicHelp": false,
|
|
330
|
-
"hiddenAliases": [],
|
|
331
|
-
"id": "init",
|
|
332
|
-
"pluginAlias": "@mailmodo/cli",
|
|
333
|
-
"pluginName": "@mailmodo/cli",
|
|
334
|
-
"pluginType": "core",
|
|
335
|
-
"strict": true,
|
|
336
|
-
"enableJsonFlag": false,
|
|
337
|
-
"isESM": true,
|
|
338
|
-
"relativePath": [
|
|
339
|
-
"dist",
|
|
340
|
-
"commands",
|
|
341
|
-
"init",
|
|
342
|
-
"index.js"
|
|
343
|
-
]
|
|
344
|
-
},
|
|
345
3
|
"login": {
|
|
346
4
|
"aliases": [],
|
|
347
5
|
"args": {},
|
|
348
|
-
"description": "
|
|
6
|
+
"description": "Login to Mailmodo",
|
|
349
7
|
"examples": [
|
|
350
|
-
"<%= config.bin %>
|
|
351
|
-
"MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login"
|
|
8
|
+
"<%= config.bin %> <%= command.id %>"
|
|
352
9
|
],
|
|
353
|
-
"flags": {
|
|
354
|
-
"json": {
|
|
355
|
-
"description": "Output as JSON",
|
|
356
|
-
"name": "json",
|
|
357
|
-
"allowNo": false,
|
|
358
|
-
"type": "boolean"
|
|
359
|
-
},
|
|
360
|
-
"yes": {
|
|
361
|
-
"char": "y",
|
|
362
|
-
"description": "Skip confirmation prompts",
|
|
363
|
-
"name": "yes",
|
|
364
|
-
"allowNo": false,
|
|
365
|
-
"type": "boolean"
|
|
366
|
-
}
|
|
367
|
-
},
|
|
10
|
+
"flags": {},
|
|
368
11
|
"hasDynamicHelp": false,
|
|
369
12
|
"hiddenAliases": [],
|
|
370
13
|
"id": "login",
|
|
@@ -380,205 +23,7 @@
|
|
|
380
23
|
"login",
|
|
381
24
|
"index.js"
|
|
382
25
|
]
|
|
383
|
-
},
|
|
384
|
-
"logs": {
|
|
385
|
-
"aliases": [],
|
|
386
|
-
"args": {},
|
|
387
|
-
"description": "View email send logs and delivery events",
|
|
388
|
-
"examples": [
|
|
389
|
-
"<%= config.bin %> logs",
|
|
390
|
-
"<%= config.bin %> logs --email sarah@example.com",
|
|
391
|
-
"<%= config.bin %> logs --failed",
|
|
392
|
-
"<%= config.bin %> logs --json"
|
|
393
|
-
],
|
|
394
|
-
"flags": {
|
|
395
|
-
"json": {
|
|
396
|
-
"description": "Output as JSON",
|
|
397
|
-
"name": "json",
|
|
398
|
-
"allowNo": false,
|
|
399
|
-
"type": "boolean"
|
|
400
|
-
},
|
|
401
|
-
"yes": {
|
|
402
|
-
"char": "y",
|
|
403
|
-
"description": "Skip confirmation prompts",
|
|
404
|
-
"name": "yes",
|
|
405
|
-
"allowNo": false,
|
|
406
|
-
"type": "boolean"
|
|
407
|
-
},
|
|
408
|
-
"email": {
|
|
409
|
-
"description": "Filter logs by contact email",
|
|
410
|
-
"name": "email",
|
|
411
|
-
"hasDynamicHelp": false,
|
|
412
|
-
"multiple": false,
|
|
413
|
-
"type": "option"
|
|
414
|
-
},
|
|
415
|
-
"failed": {
|
|
416
|
-
"description": "Show only failed/bounced events",
|
|
417
|
-
"name": "failed",
|
|
418
|
-
"allowNo": false,
|
|
419
|
-
"type": "boolean"
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
"hasDynamicHelp": false,
|
|
423
|
-
"hiddenAliases": [],
|
|
424
|
-
"id": "logs",
|
|
425
|
-
"pluginAlias": "@mailmodo/cli",
|
|
426
|
-
"pluginName": "@mailmodo/cli",
|
|
427
|
-
"pluginType": "core",
|
|
428
|
-
"strict": true,
|
|
429
|
-
"enableJsonFlag": false,
|
|
430
|
-
"isESM": true,
|
|
431
|
-
"relativePath": [
|
|
432
|
-
"dist",
|
|
433
|
-
"commands",
|
|
434
|
-
"logs",
|
|
435
|
-
"index.js"
|
|
436
|
-
]
|
|
437
|
-
},
|
|
438
|
-
"preview": {
|
|
439
|
-
"aliases": [],
|
|
440
|
-
"args": {
|
|
441
|
-
"id": {
|
|
442
|
-
"description": "Email ID to preview",
|
|
443
|
-
"name": "id"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"description": "Preview an email in browser, as text, or send a test",
|
|
447
|
-
"examples": [
|
|
448
|
-
"<%= config.bin %> preview welcome",
|
|
449
|
-
"<%= config.bin %> preview welcome --text",
|
|
450
|
-
"<%= config.bin %> preview welcome --send me@example.com"
|
|
451
|
-
],
|
|
452
|
-
"flags": {
|
|
453
|
-
"json": {
|
|
454
|
-
"description": "Output as JSON",
|
|
455
|
-
"name": "json",
|
|
456
|
-
"allowNo": false,
|
|
457
|
-
"type": "boolean"
|
|
458
|
-
},
|
|
459
|
-
"yes": {
|
|
460
|
-
"char": "y",
|
|
461
|
-
"description": "Skip confirmation prompts",
|
|
462
|
-
"name": "yes",
|
|
463
|
-
"allowNo": false,
|
|
464
|
-
"type": "boolean"
|
|
465
|
-
},
|
|
466
|
-
"send": {
|
|
467
|
-
"description": "Send test email to this address",
|
|
468
|
-
"name": "send",
|
|
469
|
-
"hasDynamicHelp": false,
|
|
470
|
-
"multiple": false,
|
|
471
|
-
"type": "option"
|
|
472
|
-
},
|
|
473
|
-
"text": {
|
|
474
|
-
"description": "Output plain text version (for AI agents)",
|
|
475
|
-
"name": "text",
|
|
476
|
-
"allowNo": false,
|
|
477
|
-
"type": "boolean"
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
"hasDynamicHelp": false,
|
|
481
|
-
"hiddenAliases": [],
|
|
482
|
-
"id": "preview",
|
|
483
|
-
"pluginAlias": "@mailmodo/cli",
|
|
484
|
-
"pluginName": "@mailmodo/cli",
|
|
485
|
-
"pluginType": "core",
|
|
486
|
-
"strict": true,
|
|
487
|
-
"enableJsonFlag": false,
|
|
488
|
-
"isESM": true,
|
|
489
|
-
"relativePath": [
|
|
490
|
-
"dist",
|
|
491
|
-
"commands",
|
|
492
|
-
"preview",
|
|
493
|
-
"index.js"
|
|
494
|
-
]
|
|
495
|
-
},
|
|
496
|
-
"status": {
|
|
497
|
-
"aliases": [],
|
|
498
|
-
"args": {},
|
|
499
|
-
"description": "View email performance metrics and quota usage",
|
|
500
|
-
"examples": [
|
|
501
|
-
"<%= config.bin %> status",
|
|
502
|
-
"<%= config.bin %> status --json"
|
|
503
|
-
],
|
|
504
|
-
"flags": {
|
|
505
|
-
"json": {
|
|
506
|
-
"description": "Output as JSON",
|
|
507
|
-
"name": "json",
|
|
508
|
-
"allowNo": false,
|
|
509
|
-
"type": "boolean"
|
|
510
|
-
},
|
|
511
|
-
"yes": {
|
|
512
|
-
"char": "y",
|
|
513
|
-
"description": "Skip confirmation prompts",
|
|
514
|
-
"name": "yes",
|
|
515
|
-
"allowNo": false,
|
|
516
|
-
"type": "boolean"
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
"hasDynamicHelp": false,
|
|
520
|
-
"hiddenAliases": [],
|
|
521
|
-
"id": "status",
|
|
522
|
-
"pluginAlias": "@mailmodo/cli",
|
|
523
|
-
"pluginName": "@mailmodo/cli",
|
|
524
|
-
"pluginType": "core",
|
|
525
|
-
"strict": true,
|
|
526
|
-
"enableJsonFlag": false,
|
|
527
|
-
"isESM": true,
|
|
528
|
-
"relativePath": [
|
|
529
|
-
"dist",
|
|
530
|
-
"commands",
|
|
531
|
-
"status",
|
|
532
|
-
"index.js"
|
|
533
|
-
]
|
|
534
|
-
},
|
|
535
|
-
"settings": {
|
|
536
|
-
"aliases": [],
|
|
537
|
-
"args": {},
|
|
538
|
-
"description": "View and update project settings",
|
|
539
|
-
"examples": [
|
|
540
|
-
"<%= config.bin %> settings",
|
|
541
|
-
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
542
|
-
"<%= config.bin %> settings --json"
|
|
543
|
-
],
|
|
544
|
-
"flags": {
|
|
545
|
-
"json": {
|
|
546
|
-
"description": "Output as JSON",
|
|
547
|
-
"name": "json",
|
|
548
|
-
"allowNo": false,
|
|
549
|
-
"type": "boolean"
|
|
550
|
-
},
|
|
551
|
-
"yes": {
|
|
552
|
-
"char": "y",
|
|
553
|
-
"description": "Skip confirmation prompts",
|
|
554
|
-
"name": "yes",
|
|
555
|
-
"allowNo": false,
|
|
556
|
-
"type": "boolean"
|
|
557
|
-
},
|
|
558
|
-
"set": {
|
|
559
|
-
"description": "Set a setting (format: key=value)",
|
|
560
|
-
"name": "set",
|
|
561
|
-
"hasDynamicHelp": false,
|
|
562
|
-
"multiple": false,
|
|
563
|
-
"type": "option"
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
"hasDynamicHelp": false,
|
|
567
|
-
"hiddenAliases": [],
|
|
568
|
-
"id": "settings",
|
|
569
|
-
"pluginAlias": "@mailmodo/cli",
|
|
570
|
-
"pluginName": "@mailmodo/cli",
|
|
571
|
-
"pluginType": "core",
|
|
572
|
-
"strict": true,
|
|
573
|
-
"enableJsonFlag": false,
|
|
574
|
-
"isESM": true,
|
|
575
|
-
"relativePath": [
|
|
576
|
-
"dist",
|
|
577
|
-
"commands",
|
|
578
|
-
"settings",
|
|
579
|
-
"index.js"
|
|
580
|
-
]
|
|
581
26
|
}
|
|
582
27
|
},
|
|
583
|
-
"version": "0.0.3
|
|
28
|
+
"version": "0.0.3"
|
|
584
29
|
}
|