@deepdynamic/cli 0.0.0-stage → 0.1.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/LICENSE +201 -0
- package/README.md +32 -2
- package/THIRD_PARTY_NOTICES.txt +102 -0
- package/dist/agents/content.js +12 -0
- package/dist/agents/edit.js +140 -0
- package/dist/agents/install.js +190 -0
- package/dist/agents/refresh.js +20 -0
- package/dist/agents/setup.js +29 -0
- package/dist/agents/targets.js +91 -0
- package/dist/auth/credentials.js +63 -0
- package/dist/auth/session.js +49 -0
- package/dist/cli.js +198 -0
- package/dist/commands/account.js +96 -0
- package/dist/commands/activity.js +80 -0
- package/dist/commands/blocked.js +89 -0
- package/dist/commands/deploy/agents.js +11 -0
- package/dist/commands/deploy/files.js +62 -0
- package/dist/commands/deploy/index.js +95 -0
- package/dist/commands/deploy/manifest.js +24 -0
- package/dist/commands/deploy/minify.js +27 -0
- package/dist/commands/deploy/progress.js +85 -0
- package/dist/commands/deploy/ship.js +117 -0
- package/dist/commands/deploy/upload.js +125 -0
- package/dist/commands/deployments.js +60 -0
- package/dist/commands/dns.js +777 -0
- package/dist/commands/domains.js +639 -0
- package/dist/commands/emails.js +74 -0
- package/dist/commands/env.js +194 -0
- package/dist/commands/help.js +148 -0
- package/dist/commands/keys.js +263 -0
- package/dist/commands/login/flow.js +155 -0
- package/dist/commands/login/index.js +26 -0
- package/dist/commands/logout.js +71 -0
- package/dist/commands/mail.js +241 -0
- package/dist/commands/notifications.js +133 -0
- package/dist/commands/plan.js +355 -0
- package/dist/commands/projects.js +838 -0
- package/dist/commands/reference.js +2187 -0
- package/dist/commands/search.js +86 -0
- package/dist/commands/server.js +301 -0
- package/dist/commands/sessions.js +114 -0
- package/dist/commands/sites.js +102 -0
- package/dist/commands/sms.js +65 -0
- package/dist/commands/status.js +87 -0
- package/dist/commands/support.js +115 -0
- package/dist/commands/update.js +100 -0
- package/dist/commands/usage.js +51 -0
- package/dist/commands/verify.js +149 -0
- package/dist/commands/version.js +6 -0
- package/dist/guide.js +37 -0
- package/dist/http/call.js +6 -0
- package/dist/http/request.js +54 -0
- package/dist/index.js +11 -0
- package/dist/metadata.js +4 -0
- package/dist/output.js +9 -0
- package/dist/pretty.js +70 -0
- package/dist/refresh-skills.js +5 -0
- package/dist/registry.js +688 -0
- package/dist/runtime/browser.js +15 -0
- package/dist/runtime/card-request.js +55 -0
- package/dist/runtime/confirm.js +21 -0
- package/dist/runtime/development.js +13 -0
- package/dist/runtime/domain-name.js +5 -0
- package/dist/runtime/dry-run.js +28 -0
- package/dist/runtime/env-file.js +55 -0
- package/dist/runtime/error-hints.js +26 -0
- package/dist/runtime/flags.js +48 -0
- package/dist/runtime/login-screen.js +78 -0
- package/dist/runtime/page.js +18 -0
- package/dist/runtime/project-name.js +1 -0
- package/dist/runtime/run-mode.js +7 -0
- package/dist/runtime/server-options.js +28 -0
- package/dist/runtime/spinner.js +17 -0
- package/dist/runtime/suggest.js +22 -0
- package/dist/runtime/support.js +13 -0
- package/dist/runtime/text-file.js +20 -0
- package/dist/runtime/timeout.js +22 -0
- package/dist/runtime/update-check.js +158 -0
- package/dist/runtime/update-install.js +80 -0
- package/dist/runtime/usage-error.js +9 -0
- package/dist/setup-agents.js +15 -0
- package/dist/site.js +1 -0
- package/dist/update-refresh.js +5 -0
- package/package.json +46 -3
package/dist/registry.js
ADDED
|
@@ -0,0 +1,688 @@
|
|
|
1
|
+
export const commands = [
|
|
2
|
+
{
|
|
3
|
+
name: 'login',
|
|
4
|
+
usage: 'deepdynamic login [--server <http(s)://host>] [--dry-run]',
|
|
5
|
+
summary: 'Log in',
|
|
6
|
+
description: 'Log in through browser approval and save credentials locally.',
|
|
7
|
+
effect: 'write',
|
|
8
|
+
requiresLogin: false,
|
|
9
|
+
requiresBrowser: true,
|
|
10
|
+
dryRun: 'local'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: 'logout',
|
|
14
|
+
usage: 'deepdynamic logout [--dry-run]',
|
|
15
|
+
summary: 'Log out',
|
|
16
|
+
description: 'Revoke the saved access token on the server and delete the local credentials.',
|
|
17
|
+
effect: 'write',
|
|
18
|
+
requiresLogin: false,
|
|
19
|
+
dryRun: 'local'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'account get',
|
|
23
|
+
usage: 'deepdynamic account get [--dry-run]',
|
|
24
|
+
summary: 'Show the signed-in account and guide',
|
|
25
|
+
description: 'Show the signed-in account and the guide for talking to this user. Run it before other commands.',
|
|
26
|
+
effect: 'read',
|
|
27
|
+
requiresLogin: false,
|
|
28
|
+
dryRun: 'local'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'account activity',
|
|
32
|
+
usage: 'deepdynamic account activity [--page <number>] [--kind login|change] [--date YYYY-MM-DD] [--source web|cli] [--dry-run]',
|
|
33
|
+
summary: 'List account activity',
|
|
34
|
+
description: "List the account's sign-in and settings-change records, newest first, 10 per page.",
|
|
35
|
+
effect: 'read',
|
|
36
|
+
requiresLogin: true,
|
|
37
|
+
dryRun: 'local'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'account notifications',
|
|
41
|
+
usage: 'deepdynamic account notifications [--unread] [--limit <number>] [--dry-run]',
|
|
42
|
+
summary: 'List notifications',
|
|
43
|
+
description: "List the account's notifications (failed payments, certificate and domain expiry, autopilot limit), newest first.",
|
|
44
|
+
effect: 'read',
|
|
45
|
+
requiresLogin: true,
|
|
46
|
+
dryRun: 'local'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'account notifications read',
|
|
50
|
+
usage: 'deepdynamic account notifications read (<notification-id>... | --all) [--dry-run]',
|
|
51
|
+
summary: 'Mark notifications as read',
|
|
52
|
+
description: 'Mark the given notifications, or all of them with --all, as read.',
|
|
53
|
+
effect: 'write',
|
|
54
|
+
requiresLogin: true,
|
|
55
|
+
dryRun: 'local'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'account delete',
|
|
59
|
+
usage: 'deepdynamic account delete [--dry-run]',
|
|
60
|
+
summary: 'Check deletion conditions and open the request page',
|
|
61
|
+
description: 'Show what blocks deleting the account and open the web page where the user requests deletion.',
|
|
62
|
+
effect: 'read',
|
|
63
|
+
requiresLogin: true,
|
|
64
|
+
requiresBrowser: true,
|
|
65
|
+
dryRun: 'local'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'system status',
|
|
69
|
+
usage: 'deepdynamic system status [--server <http(s)://host>] [--dry-run]',
|
|
70
|
+
summary: 'Check the deployment server connection',
|
|
71
|
+
description: 'Check that the deployment server and its services respond.',
|
|
72
|
+
effect: 'read',
|
|
73
|
+
requiresLogin: false,
|
|
74
|
+
dryRun: 'local'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'verify',
|
|
78
|
+
usage: 'deepdynamic verify [--save <path>] [--file <path>] [--server <http(s)://host>] [--dry-run]',
|
|
79
|
+
summary: 'Check or download the metrics script',
|
|
80
|
+
description: 'Download ddn.js, compare its SHA-384 hash with the published manifest and optionally save it.',
|
|
81
|
+
effect: 'read',
|
|
82
|
+
requiresLogin: false,
|
|
83
|
+
dryRun: 'local'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'help',
|
|
87
|
+
usage: 'deepdynamic help [--all]',
|
|
88
|
+
summary: 'Show help',
|
|
89
|
+
description: 'Show the command list and the global options. With --all, return the full command tree like deepdynamic commands.',
|
|
90
|
+
effect: 'read',
|
|
91
|
+
requiresLogin: false
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'commands',
|
|
95
|
+
usage: 'deepdynamic commands',
|
|
96
|
+
summary: 'Show the full command tree',
|
|
97
|
+
description: 'Return every command in one tree with its usage, effect, login, --dry-run and --yes.',
|
|
98
|
+
effect: 'read',
|
|
99
|
+
requiresLogin: false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'update',
|
|
103
|
+
usage: 'deepdynamic update [--yes] [--dry-run]',
|
|
104
|
+
summary: 'Check for and install a new CLI version',
|
|
105
|
+
description: 'Check npm for a newer CLI version and install it globally with the package manager that installed the CLI.',
|
|
106
|
+
effect: 'write',
|
|
107
|
+
requiresLogin: false,
|
|
108
|
+
dryRun: 'local',
|
|
109
|
+
confirm: 'conditional'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'sites',
|
|
113
|
+
usage: 'deepdynamic sites [--page <number>] [--server <http(s)://host>] [--dry-run]',
|
|
114
|
+
summary: 'List published sites',
|
|
115
|
+
description: 'List the public sites deployed with DeepDynamic Cloud, 10 per page, each with a short summary.',
|
|
116
|
+
effect: 'read',
|
|
117
|
+
requiresLogin: false,
|
|
118
|
+
dryRun: 'local'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'sites blocked',
|
|
122
|
+
usage: 'deepdynamic sites blocked [--page <number>] [--ray <id>] [--host <host>] [--date YYYY-MM-DD] [--dry-run]',
|
|
123
|
+
summary: 'List blocked requests',
|
|
124
|
+
description: 'List blocked requests to your sites that got the 403 page (ID, time, IP, method, path), newest first, 20 per page.',
|
|
125
|
+
effect: 'read',
|
|
126
|
+
requiresLogin: true,
|
|
127
|
+
dryRun: 'local'
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'search',
|
|
131
|
+
usage: 'deepdynamic search <page> [--server <http(s)://host>] [--dry-run]',
|
|
132
|
+
summary: 'Show website page info',
|
|
133
|
+
description: 'Look up the information one page of the DeepDynamic Cloud website provides, as Korean markdown.',
|
|
134
|
+
effect: 'read',
|
|
135
|
+
requiresLogin: false,
|
|
136
|
+
dryRun: 'local'
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'support qa',
|
|
140
|
+
usage: 'deepdynamic support qa [--server <http(s)://host>] [--dry-run]',
|
|
141
|
+
summary: 'Show frequently asked questions',
|
|
142
|
+
description: 'Show the FAQ and the guidelines for writing a support inquiry. Read this before deepdynamic support contact.',
|
|
143
|
+
effect: 'read',
|
|
144
|
+
requiresLogin: false,
|
|
145
|
+
dryRun: 'local'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'support contact',
|
|
149
|
+
usage: 'deepdynamic support contact (--message <text> | --message-file <path>) [--team <email>]... [--dry-run]',
|
|
150
|
+
summary: 'Send a message to support',
|
|
151
|
+
description: 'Send a support inquiry to DeepDynamic staff as the logged-in account.',
|
|
152
|
+
effect: 'write',
|
|
153
|
+
requiresLogin: true,
|
|
154
|
+
dryRun: 'server'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'emails send',
|
|
158
|
+
usage: 'deepdynamic emails send --to <email> --title <text> (--body <text> | --body-file <path>) [--dry-run]',
|
|
159
|
+
summary: 'Send an email as the account',
|
|
160
|
+
description: 'Send a plain-text email on behalf of the logged-in account.',
|
|
161
|
+
effect: 'write',
|
|
162
|
+
requiresLogin: true,
|
|
163
|
+
dryRun: 'server'
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'sms send',
|
|
167
|
+
usage: 'deepdynamic sms send --to <phone> (--body <text> | --body-file <path>) [--dry-run]',
|
|
168
|
+
summary: 'Send a text message',
|
|
169
|
+
description: 'Send a single SMS to a Korean mobile number as the logged-in account.',
|
|
170
|
+
effect: 'write',
|
|
171
|
+
requiresLogin: true,
|
|
172
|
+
dryRun: 'server'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'projects',
|
|
176
|
+
usage: 'deepdynamic projects [--page <number>] [--dry-run]',
|
|
177
|
+
summary: 'List my projects',
|
|
178
|
+
description: 'List the projects of the logged-in account, most recently active first, with deploy status.',
|
|
179
|
+
effect: 'read',
|
|
180
|
+
requiresLogin: true,
|
|
181
|
+
dryRun: 'local'
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'projects create',
|
|
185
|
+
usage: 'deepdynamic projects create <name> [--timeout <seconds>] [--dry-run]',
|
|
186
|
+
summary: 'Create a project and its dedicated server',
|
|
187
|
+
description: 'Create a project and its dedicated server. Required once before the first deploy of that project name.',
|
|
188
|
+
effect: 'write',
|
|
189
|
+
requiresLogin: true,
|
|
190
|
+
dryRun: 'server'
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'projects status',
|
|
194
|
+
usage: 'deepdynamic projects status <name> [--dry-run]',
|
|
195
|
+
summary: 'Show the project server status',
|
|
196
|
+
description: 'Show whether the dedicated server of one of your projects is ready.',
|
|
197
|
+
effect: 'read',
|
|
198
|
+
requiresLogin: true,
|
|
199
|
+
dryRun: 'local'
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'projects metric',
|
|
203
|
+
usage: 'deepdynamic projects metric <name> [--period 24h|7d|30d] [--dry-run]',
|
|
204
|
+
summary: 'Show site visit statistics',
|
|
205
|
+
description: 'Show the visit statistics of one of your projects for the last 24 hours, 7 days or 30 days in Korea time.',
|
|
206
|
+
effect: 'read',
|
|
207
|
+
requiresLogin: true,
|
|
208
|
+
dryRun: 'local'
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'projects photocard',
|
|
212
|
+
usage: 'deepdynamic projects photocard <name> [--out <directory>] [--dry-run]',
|
|
213
|
+
summary: 'Save the photocard images',
|
|
214
|
+
description: 'Render the photocard of one of your projects on the server and save its front and back as two PNG files.',
|
|
215
|
+
effect: 'read',
|
|
216
|
+
requiresLogin: true,
|
|
217
|
+
dryRun: 'local'
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: 'projects deploy',
|
|
221
|
+
usage: 'deepdynamic projects deploy <name> <directory> --agent <code> [--timeout <seconds>] [--dry-run]',
|
|
222
|
+
summary: 'Deploy a static or dynamic site',
|
|
223
|
+
description: 'Upload a site to the project repository, then build and publish it on the project server.',
|
|
224
|
+
effect: 'write',
|
|
225
|
+
requiresLogin: true,
|
|
226
|
+
dryRun: 'local'
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'projects env push',
|
|
230
|
+
usage: 'deepdynamic projects env push <name> [<file>] [--dry-run]',
|
|
231
|
+
summary: 'Seal and save environment variables',
|
|
232
|
+
description: 'Seal a .env file with the server key and store it for a project. It applies from the next deploy.',
|
|
233
|
+
effect: 'write',
|
|
234
|
+
requiresLogin: true,
|
|
235
|
+
dryRun: 'local'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'projects env list',
|
|
239
|
+
usage: 'deepdynamic projects env list <name> [--dry-run]',
|
|
240
|
+
summary: 'List saved environment variable names',
|
|
241
|
+
description: 'List the names of the environment variables stored for a project. Values are never shown.',
|
|
242
|
+
effect: 'read',
|
|
243
|
+
requiresLogin: true,
|
|
244
|
+
dryRun: 'local'
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: 'projects env clear',
|
|
248
|
+
usage: 'deepdynamic projects env clear <name> --yes [--dry-run]',
|
|
249
|
+
summary: 'Clear all environment variables',
|
|
250
|
+
description: 'Remove every stored environment variable of a project. The next deploy builds and runs without them.',
|
|
251
|
+
effect: 'write',
|
|
252
|
+
requiresLogin: true,
|
|
253
|
+
dryRun: 'local',
|
|
254
|
+
confirm: 'required'
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'deployments',
|
|
258
|
+
usage: 'deepdynamic deployments <id> [--dry-run]',
|
|
259
|
+
summary: 'Show deploy progress',
|
|
260
|
+
description: 'Read the progress of one deploy or rollback once and return right away. Each call also moves the deploy forward.',
|
|
261
|
+
effect: 'read',
|
|
262
|
+
requiresLogin: true,
|
|
263
|
+
dryRun: 'local'
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: 'projects history',
|
|
267
|
+
usage: 'deepdynamic projects history <name> [--dry-run]',
|
|
268
|
+
summary: 'List published deploys',
|
|
269
|
+
description: 'List the published deployments of one of your projects, newest first. Use it to pick a rollback target.',
|
|
270
|
+
effect: 'read',
|
|
271
|
+
requiresLogin: true,
|
|
272
|
+
dryRun: 'local'
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: 'projects rollback',
|
|
276
|
+
usage: 'deepdynamic projects rollback <name> [--to <commit>] [--timeout <seconds>] --yes [--dry-run]',
|
|
277
|
+
summary: 'Roll back to an earlier deploy',
|
|
278
|
+
description: 'Publish an earlier deployment of your project again; without --to, the one before the live deployment.',
|
|
279
|
+
effect: 'write',
|
|
280
|
+
requiresLogin: true,
|
|
281
|
+
dryRun: 'local',
|
|
282
|
+
confirm: 'required'
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'projects rename',
|
|
286
|
+
usage: 'deepdynamic projects rename <name> <new-name> [--dry-run]',
|
|
287
|
+
summary: 'Rename a project',
|
|
288
|
+
description: 'Rename one of your projects, for example from a generic name such as demo-site to one that fits the site source.',
|
|
289
|
+
effect: 'write',
|
|
290
|
+
requiresLogin: true,
|
|
291
|
+
dryRun: 'server'
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: 'projects pwa',
|
|
295
|
+
usage: 'deepdynamic projects pwa <name> [on|off] [--dry-run]',
|
|
296
|
+
summary: 'Turn app install (PWA) on or off',
|
|
297
|
+
description: 'Show or set whether the site is advertised as an installable PWA (web app manifest).',
|
|
298
|
+
effect: 'write',
|
|
299
|
+
requiresLogin: true,
|
|
300
|
+
dryRun: 'local'
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: 'projects stop',
|
|
304
|
+
usage: 'deepdynamic projects stop <name> --yes [--dry-run]',
|
|
305
|
+
summary: 'Stop deploys and turn the server off',
|
|
306
|
+
description: 'Stop serving one of your projects: cancel its running deploys and turn its project server off.',
|
|
307
|
+
effect: 'write',
|
|
308
|
+
requiresLogin: true,
|
|
309
|
+
dryRun: 'local',
|
|
310
|
+
confirm: 'required'
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'projects delete',
|
|
314
|
+
usage: 'deepdynamic projects delete <name> --yes [--dry-run]',
|
|
315
|
+
summary: 'Delete a project and its server',
|
|
316
|
+
description: 'Delete one of your projects permanently together with its project server, Git repository and deploy history.',
|
|
317
|
+
effect: 'destructive',
|
|
318
|
+
requiresLogin: true,
|
|
319
|
+
dryRun: 'local',
|
|
320
|
+
confirm: 'required'
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: 'domains',
|
|
324
|
+
usage: 'deepdynamic domains [--page <number>] [--dry-run]',
|
|
325
|
+
summary: 'List owned domains',
|
|
326
|
+
description: 'List the domains you bought or connected from elsewhere, with their project, connection status and expiry.',
|
|
327
|
+
effect: 'read',
|
|
328
|
+
requiresLogin: true,
|
|
329
|
+
dryRun: 'local'
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: 'domains search',
|
|
333
|
+
usage: 'deepdynamic domains search <name> [--tlds <tld,...>] [--dry-run]',
|
|
334
|
+
summary: 'Check domain availability',
|
|
335
|
+
description: 'Check whether a name can be registered, with KRW prices; without --tlds it checks the nine recommended TLDs.',
|
|
336
|
+
effect: 'read',
|
|
337
|
+
requiresLogin: false,
|
|
338
|
+
dryRun: 'local'
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: 'domains tlds',
|
|
342
|
+
usage: 'deepdynamic domains tlds [--dry-run]',
|
|
343
|
+
summary: 'List supported TLDs',
|
|
344
|
+
description: 'List the TLDs that can be bought, with list prices in KRW.',
|
|
345
|
+
effect: 'read',
|
|
346
|
+
requiresLogin: false,
|
|
347
|
+
dryRun: 'local'
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
name: 'domains buy',
|
|
351
|
+
usage: 'deepdynamic domains buy <domain> [--project <project>] [--years 1|2|3] [--no-auto-renew] [--yes --total <won>] [--dry-run]',
|
|
352
|
+
summary: 'Buy a domain',
|
|
353
|
+
description: 'Buy a domain for one of your projects after the user agrees to the total in KRW.',
|
|
354
|
+
effect: 'billing',
|
|
355
|
+
requiresLogin: true,
|
|
356
|
+
dryRun: 'server',
|
|
357
|
+
confirm: 'required'
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: 'domains register',
|
|
361
|
+
usage: 'deepdynamic domains register <domain> [--project <project>] [--dns ns|cname] [--site <label|@>] [--dry-run]',
|
|
362
|
+
summary: 'Register a domain bought elsewhere',
|
|
363
|
+
description: 'Register a domain bought elsewhere for one of your projects and get the TXT record that proves ownership.',
|
|
364
|
+
effect: 'write',
|
|
365
|
+
requiresLogin: true,
|
|
366
|
+
dryRun: 'local'
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: 'domains verify',
|
|
370
|
+
usage: 'deepdynamic domains verify <domain> [--dry-run]',
|
|
371
|
+
summary: 'Check domain ownership and connection',
|
|
372
|
+
description: 'Check the ownership TXT record of a registered domain and connect it, or re-check its nameservers or CNAMEs.',
|
|
373
|
+
effect: 'write',
|
|
374
|
+
requiresLogin: true,
|
|
375
|
+
dryRun: 'local'
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: 'domains remove',
|
|
379
|
+
usage: 'deepdynamic domains remove <domain> --yes [--dry-run]',
|
|
380
|
+
summary: 'Disconnect a domain bought elsewhere',
|
|
381
|
+
description: 'Disconnect a domain registered with deepdynamic domains register, deleting its DNS zone and HTTPS certificate.',
|
|
382
|
+
effect: 'write',
|
|
383
|
+
requiresLogin: true,
|
|
384
|
+
dryRun: 'local',
|
|
385
|
+
confirm: 'required'
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: 'domains auto-renew',
|
|
389
|
+
usage: 'deepdynamic domains auto-renew <domain> <on|off> [--yes] [--dry-run]',
|
|
390
|
+
summary: 'Change domain auto-renewal',
|
|
391
|
+
description: 'Turn auto-renew on or off for a domain bought with deepdynamic domains buy.',
|
|
392
|
+
effect: 'write',
|
|
393
|
+
requiresLogin: true,
|
|
394
|
+
dryRun: 'local',
|
|
395
|
+
confirm: 'conditional'
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: 'dns',
|
|
399
|
+
usage: 'deepdynamic dns [--page <number>] [--dry-run]',
|
|
400
|
+
summary: 'List domains with managed DNS',
|
|
401
|
+
description: 'List the domains whose DNS the account manages, with their records and DNS status.',
|
|
402
|
+
effect: 'read',
|
|
403
|
+
requiresLogin: true,
|
|
404
|
+
dryRun: 'local'
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: 'dns records',
|
|
408
|
+
usage: 'deepdynamic dns records <domain> [--dry-run]',
|
|
409
|
+
summary: 'List DNS records',
|
|
410
|
+
description: 'Show the DNS records of one managed domain.',
|
|
411
|
+
effect: 'read',
|
|
412
|
+
requiresLogin: true,
|
|
413
|
+
dryRun: 'local'
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: 'dns add',
|
|
417
|
+
usage: 'deepdynamic dns add <domain> --type <type> --name <name> --value <value> [--ttl auto|300|3600|86400] [--priority <0-65535>] [--dry-run]',
|
|
418
|
+
summary: 'Add a DNS record',
|
|
419
|
+
description: 'Add a DNS record to a managed domain.',
|
|
420
|
+
effect: 'write',
|
|
421
|
+
requiresLogin: true,
|
|
422
|
+
dryRun: 'local'
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: 'dns update',
|
|
426
|
+
usage: 'deepdynamic dns update <domain> <record-id> --type <type> --name <name> --value <value> [--ttl auto|300|3600|86400] [--priority <0-65535>] [--dry-run]',
|
|
427
|
+
summary: 'Update a DNS record',
|
|
428
|
+
description: 'Replace an existing DNS record of a managed domain.',
|
|
429
|
+
effect: 'write',
|
|
430
|
+
requiresLogin: true,
|
|
431
|
+
dryRun: 'local'
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: 'dns delete',
|
|
435
|
+
usage: 'deepdynamic dns delete <domain> <record-id> --yes [--dry-run]',
|
|
436
|
+
summary: 'Delete a DNS record',
|
|
437
|
+
description: 'Delete a DNS record of a managed domain.',
|
|
438
|
+
effect: 'destructive',
|
|
439
|
+
requiresLogin: true,
|
|
440
|
+
dryRun: 'local',
|
|
441
|
+
confirm: 'required'
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
name: 'dns restore',
|
|
445
|
+
usage: 'deepdynamic dns restore <domain> --project <name> [--name <host>] --yes [--dry-run]',
|
|
446
|
+
summary: 'Restore the site CNAME',
|
|
447
|
+
description: 'Recreate the CNAME that connects a domain host to a project site.',
|
|
448
|
+
effect: 'write',
|
|
449
|
+
requiresLogin: true,
|
|
450
|
+
dryRun: 'local',
|
|
451
|
+
confirm: 'required'
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: 'dns sync',
|
|
455
|
+
usage: 'deepdynamic dns sync <domain> --yes [--dry-run]',
|
|
456
|
+
summary: 'Sync the DNS servers',
|
|
457
|
+
description: 'Apply the saved DNS records of a managed domain to its DNS servers right now.',
|
|
458
|
+
effect: 'destructive',
|
|
459
|
+
requiresLogin: true,
|
|
460
|
+
dryRun: 'local',
|
|
461
|
+
confirm: 'required'
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: 'dns dnssec',
|
|
465
|
+
usage: 'deepdynamic dns dnssec <domain> <on|off> --yes [--dry-run]',
|
|
466
|
+
summary: 'Turn DNSSEC on or off',
|
|
467
|
+
description: 'Turn DNSSEC on or off for a domain bought through DeepDynamic: zone signing and the DS record at the registrar.',
|
|
468
|
+
effect: 'write',
|
|
469
|
+
requiresLogin: true,
|
|
470
|
+
dryRun: 'local',
|
|
471
|
+
confirm: 'required'
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
name: 'dns google',
|
|
475
|
+
usage: 'deepdynamic dns google <domain> [--dry-run]',
|
|
476
|
+
summary: 'Get the Google Search Console setup link',
|
|
477
|
+
description: 'Get a Google consent URL that verifies a managed domain and adds it to Google Search Console.',
|
|
478
|
+
effect: 'write',
|
|
479
|
+
requiresLogin: true,
|
|
480
|
+
dryRun: 'local'
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: 'dns analytics',
|
|
484
|
+
usage: 'deepdynamic dns analytics <domain> [off] [--yes] [--dry-run]',
|
|
485
|
+
summary: 'Get or remove the Google Analytics (GA4) setup link',
|
|
486
|
+
description: 'Get a Google consent URL that creates a GA4 property and adds its tag to the site, or remove the tag with off.',
|
|
487
|
+
effect: 'write',
|
|
488
|
+
requiresLogin: true,
|
|
489
|
+
dryRun: 'local',
|
|
490
|
+
confirm: 'conditional'
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
name: 'server',
|
|
494
|
+
usage: 'deepdynamic server [--dry-run]',
|
|
495
|
+
summary: 'List server specs',
|
|
496
|
+
description: 'List the CPU, RAM, usage and monthly extra charge of each project server and the autopilot state.',
|
|
497
|
+
effect: 'read',
|
|
498
|
+
requiresLogin: true,
|
|
499
|
+
dryRun: 'local'
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
name: 'server set',
|
|
503
|
+
usage: 'deepdynamic server set <project> [--cores 1|2|4|8] [--memory 1|2|4|8] [--yes] [--dry-run]',
|
|
504
|
+
summary: 'Change CPU and RAM',
|
|
505
|
+
description: 'Change the CPU cores and RAM of one project server, which restarts it briefly.',
|
|
506
|
+
effect: 'billing',
|
|
507
|
+
requiresLogin: true,
|
|
508
|
+
dryRun: 'local',
|
|
509
|
+
confirm: 'conditional'
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: 'server autopilot',
|
|
513
|
+
usage: 'deepdynamic server autopilot <on|off> [--limit 50000|100000|200000|300000] [--dry-run]',
|
|
514
|
+
summary: 'Turn autopilot on or off',
|
|
515
|
+
description: 'Turn autopilot on or off. It scales CPU and RAM of every project server within a monthly limit.',
|
|
516
|
+
effect: 'billing',
|
|
517
|
+
requiresLogin: true,
|
|
518
|
+
dryRun: 'local'
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
name: 'plan',
|
|
522
|
+
usage: 'deepdynamic plan [--dry-run]',
|
|
523
|
+
summary: 'Show the plan, subscription and payment card',
|
|
524
|
+
description: 'Show the current plan (free, pro or team), the paid subscription, the billing card and recent charges.',
|
|
525
|
+
effect: 'read',
|
|
526
|
+
requiresLogin: true,
|
|
527
|
+
dryRun: 'local'
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
name: 'plan subscribe',
|
|
531
|
+
usage: 'deepdynamic plan subscribe <pro|team> [--yes] [--dry-run]',
|
|
532
|
+
summary: 'Subscribe to or change a paid plan',
|
|
533
|
+
description: 'Subscribe to the pro or team plan or switch between them. Subscribing and upgrading charge the card at once.',
|
|
534
|
+
effect: 'billing',
|
|
535
|
+
requiresLogin: true,
|
|
536
|
+
dryRun: 'local',
|
|
537
|
+
confirm: 'conditional'
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
name: 'plan cancel',
|
|
541
|
+
usage: 'deepdynamic plan cancel --yes [--dry-run]',
|
|
542
|
+
summary: 'Cancel the paid plan',
|
|
543
|
+
description: "Cancel the paid plan. It stays until the end of this month (KST), or ends now if this month's charge is unpaid.",
|
|
544
|
+
effect: 'write',
|
|
545
|
+
requiresLogin: true,
|
|
546
|
+
dryRun: 'local',
|
|
547
|
+
confirm: 'required'
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
name: 'plan resume',
|
|
551
|
+
usage: 'deepdynamic plan resume [--dry-run]',
|
|
552
|
+
summary: 'Undo a scheduled cancellation',
|
|
553
|
+
description: 'Undo a scheduled cancellation so the paid plan keeps renewing every month.',
|
|
554
|
+
effect: 'billing',
|
|
555
|
+
requiresLogin: true,
|
|
556
|
+
dryRun: 'local'
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
name: 'plan pay',
|
|
560
|
+
usage: 'deepdynamic plan pay --yes [--dry-run]',
|
|
561
|
+
summary: 'Pay outstanding charges',
|
|
562
|
+
description: 'Pay the monthly charges that failed and are still unpaid, oldest first, with the billing card.',
|
|
563
|
+
effect: 'billing',
|
|
564
|
+
requiresLogin: true,
|
|
565
|
+
dryRun: 'local',
|
|
566
|
+
confirm: 'required'
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
name: 'usage',
|
|
570
|
+
usage: 'deepdynamic usage [--dry-run]',
|
|
571
|
+
summary: "Show this month's SMS and email usage",
|
|
572
|
+
description: 'Show SMS and emails sent this month (KST) against the plan limit, with remaining and daily counts.',
|
|
573
|
+
effect: 'read',
|
|
574
|
+
requiresLogin: true,
|
|
575
|
+
dryRun: 'local'
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
name: 'keys',
|
|
579
|
+
usage: 'deepdynamic keys [--page <number>] [--dry-run]',
|
|
580
|
+
summary: 'List issued API keys',
|
|
581
|
+
description: 'List the service API keys you have issued (DNS, S3, Pay and custom keys) with their prefix, scopes and expiry.',
|
|
582
|
+
effect: 'read',
|
|
583
|
+
requiresLogin: true,
|
|
584
|
+
dryRun: 'local'
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
name: 'keys issue',
|
|
588
|
+
usage: 'deepdynamic keys issue <dns|s3|pay> [--expires 10m|1h|6h|1d] [--yes] [--dry-run]',
|
|
589
|
+
summary: 'Issue a service API key',
|
|
590
|
+
description: 'Issue a DNS Control, S3 Control or temporary Pay Control API key and print its value once.',
|
|
591
|
+
effect: 'billing',
|
|
592
|
+
requiresLogin: true,
|
|
593
|
+
dryRun: 'local',
|
|
594
|
+
confirm: 'conditional'
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: 'keys create',
|
|
598
|
+
usage: 'deepdynamic keys create --label <label> --scope <scope> [--scope <scope>]... [--dry-run]',
|
|
599
|
+
summary: 'Create an API key with scopes',
|
|
600
|
+
description: 'Create a custom API key with only the scopes you choose and print its value once.',
|
|
601
|
+
effect: 'write',
|
|
602
|
+
requiresLogin: true,
|
|
603
|
+
dryRun: 'local'
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
name: 'keys revoke',
|
|
607
|
+
usage: 'deepdynamic keys revoke <key-id> --yes [--dry-run]',
|
|
608
|
+
summary: 'Revoke an API key',
|
|
609
|
+
description: 'Revoke one of your API keys so tools using it are blocked at once.',
|
|
610
|
+
effect: 'destructive',
|
|
611
|
+
requiresLogin: true,
|
|
612
|
+
dryRun: 'local',
|
|
613
|
+
confirm: 'required'
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
name: 'sessions',
|
|
617
|
+
usage: 'deepdynamic sessions [--dry-run]',
|
|
618
|
+
summary: 'List login sessions',
|
|
619
|
+
description: "List the account's active sign-ins: browser sessions and CLI login tokens with IP, last activity and the current one.",
|
|
620
|
+
effect: 'read',
|
|
621
|
+
requiresLogin: true,
|
|
622
|
+
dryRun: 'local'
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
name: 'sessions revoke',
|
|
626
|
+
usage: 'deepdynamic sessions revoke <session-id> --yes [--dry-run]',
|
|
627
|
+
summary: 'Revoke a login session',
|
|
628
|
+
description: 'Sign out one browser session or deepdynamic login token of the account. The one this CLI is using cannot be revoked.',
|
|
629
|
+
effect: 'destructive',
|
|
630
|
+
requiresLogin: true,
|
|
631
|
+
dryRun: 'local',
|
|
632
|
+
confirm: 'required'
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
name: 'mail',
|
|
636
|
+
usage: 'deepdynamic mail [--page <number>] [--dry-run]',
|
|
637
|
+
summary: 'List domains with mail settings',
|
|
638
|
+
description: 'List your managed domains with their mail authentication settings (SPF, DKIM, DMARC) read from their DNS records.',
|
|
639
|
+
effect: 'read',
|
|
640
|
+
requiresLogin: true,
|
|
641
|
+
dryRun: 'local'
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
name: 'mail show',
|
|
645
|
+
usage: 'deepdynamic mail show <domain> [--dry-run]',
|
|
646
|
+
summary: "Show a domain's mail settings",
|
|
647
|
+
description: 'Show the SPF, DKIM and DMARC settings of one managed domain, read from its DNS records.',
|
|
648
|
+
effect: 'read',
|
|
649
|
+
requiresLogin: true,
|
|
650
|
+
dryRun: 'local'
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: 'mail set',
|
|
654
|
+
usage: 'deepdynamic mail set <domain> [--policy none|quarantine|reject] [--rua <email>] [--spf-include <host>] [--selector <selector> --public-key <base64>] --yes [--dry-run]',
|
|
655
|
+
summary: 'Change mail authentication settings',
|
|
656
|
+
description: 'Set up or change the DMARC policy, report address, SPF sender or DKIM key of a domain by writing its TXT records.',
|
|
657
|
+
effect: 'write',
|
|
658
|
+
requiresLogin: true,
|
|
659
|
+
dryRun: 'local',
|
|
660
|
+
confirm: 'required'
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
name: 'mail reset',
|
|
664
|
+
usage: 'deepdynamic mail reset <domain> --yes [--dry-run]',
|
|
665
|
+
summary: 'Return mail to the automatic setup',
|
|
666
|
+
description: 'Return the mail settings of a domain to the automatic setup, or set a fresh domain up with it.',
|
|
667
|
+
effect: 'destructive',
|
|
668
|
+
requiresLogin: true,
|
|
669
|
+
dryRun: 'local',
|
|
670
|
+
confirm: 'required'
|
|
671
|
+
}
|
|
672
|
+
];
|
|
673
|
+
export function spec(name) {
|
|
674
|
+
return commands.find((entry) => entry.name === name);
|
|
675
|
+
}
|
|
676
|
+
export function requiredUsage(usage) {
|
|
677
|
+
let depth = 0;
|
|
678
|
+
let kept = '';
|
|
679
|
+
for (const char of usage) {
|
|
680
|
+
if (char === '[')
|
|
681
|
+
depth++;
|
|
682
|
+
else if (char === ']')
|
|
683
|
+
depth--;
|
|
684
|
+
else if (depth === 0)
|
|
685
|
+
kept += char;
|
|
686
|
+
}
|
|
687
|
+
return kept.replace(/\s*\.\.\.(?=\s|$)/g, '').replace(/\s+/g, ' ').trim();
|
|
688
|
+
}
|