appwrite-cli 17.0.0 → 17.2.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/.github/workflows/ci.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +2 -2
- package/bun.lock +783 -0
- package/cli.ts +19 -1
- package/dist/bundle-win-arm64.mjs +1515 -744
- package/dist/cli.cjs +1515 -744
- package/dist/index.cjs +322 -118
- package/dist/index.js +322 -118
- package/dist/lib/client.d.ts +9 -0
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/commands/services/organizations.d.ts +3 -0
- package/dist/lib/commands/services/organizations.d.ts.map +1 -0
- package/dist/lib/commands/services/teams.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/emulation/docker.d.ts.map +1 -1
- package/dist/lib/emulation/utils.d.ts.map +1 -1
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/questions.d.ts.map +1 -1
- package/dist/lib/types.d.ts +3 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/docs/examples/organizations/add-credit.md +5 -0
- package/docs/examples/organizations/cancel-downgrade.md +4 -0
- package/docs/examples/organizations/create-downgrade-feedback.md +8 -0
- package/docs/examples/organizations/create-invoice-payment.md +6 -0
- package/docs/examples/organizations/create-key.md +6 -0
- package/docs/examples/organizations/create.md +6 -0
- package/docs/examples/organizations/delete-backup-payment-method.md +4 -0
- package/docs/examples/organizations/delete-default-payment-method.md +4 -0
- package/docs/examples/organizations/delete-key.md +5 -0
- package/docs/examples/organizations/delete.md +4 -0
- package/docs/examples/organizations/estimation-create-organization.md +4 -0
- package/docs/examples/organizations/estimation-delete-organization.md +4 -0
- package/docs/examples/organizations/estimation-update-plan.md +5 -0
- package/docs/examples/organizations/get-aggregation.md +5 -0
- package/docs/examples/organizations/get-available-credits.md +4 -0
- package/docs/examples/organizations/get-credit.md +5 -0
- package/docs/examples/organizations/get-invoice-download.md +5 -0
- package/docs/examples/organizations/get-invoice-view.md +5 -0
- package/docs/examples/organizations/get-invoice.md +5 -0
- package/docs/examples/organizations/get-key.md +5 -0
- package/docs/examples/organizations/get-plan.md +4 -0
- package/docs/examples/organizations/get-scopes.md +4 -0
- package/docs/examples/organizations/get-usage.md +4 -0
- package/docs/examples/organizations/list-aggregations.md +4 -0
- package/docs/examples/organizations/list-credits.md +4 -0
- package/docs/examples/organizations/list-keys.md +4 -0
- package/docs/examples/organizations/list-regions.md +4 -0
- package/docs/examples/organizations/list.md +3 -0
- package/docs/examples/organizations/set-backup-payment-method.md +5 -0
- package/docs/examples/organizations/set-billing-address.md +5 -0
- package/docs/examples/organizations/set-billing-email.md +5 -0
- package/docs/examples/organizations/set-billing-tax-id.md +5 -0
- package/docs/examples/organizations/set-default-payment-method.md +5 -0
- package/docs/examples/organizations/update-budget.md +5 -0
- package/docs/examples/organizations/update-key.md +7 -0
- package/docs/examples/organizations/update-plan.md +5 -0
- package/docs/examples/organizations/validate-invoice.md +5 -0
- package/docs/examples/organizations/validate-payment.md +4 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.ts +12 -0
- package/lib/commands/init.ts +109 -2
- package/lib/commands/services/account.ts +110 -55
- package/lib/commands/services/activities.ts +4 -2
- package/lib/commands/services/backups.ts +24 -12
- package/lib/commands/services/databases.ts +150 -75
- package/lib/commands/services/functions.ts +60 -30
- package/lib/commands/services/graphql.ts +4 -2
- package/lib/commands/services/health.ts +46 -23
- package/lib/commands/services/locale.ts +16 -8
- package/lib/commands/services/messaging.ts +96 -48
- package/lib/commands/services/migrations.ts +30 -16
- package/lib/commands/services/organizations.ts +555 -0
- package/lib/commands/services/project.ts +12 -6
- package/lib/commands/services/projects.ts +105 -53
- package/lib/commands/services/proxy.ts +18 -10
- package/lib/commands/services/sites.ts +58 -29
- package/lib/commands/services/storage.ts +30 -15
- package/lib/commands/services/tables-db.ts +148 -74
- package/lib/commands/services/teams.ts +38 -15
- package/lib/commands/services/tokens.ts +10 -5
- package/lib/commands/services/users.ts +88 -44
- package/lib/commands/services/vcs.ts +22 -12
- package/lib/commands/services/webhooks.ts +12 -6
- package/lib/constants.ts +1 -1
- package/lib/emulation/docker.ts +1 -0
- package/lib/emulation/utils.ts +3 -2
- package/lib/parser.ts +356 -77
- package/lib/questions.ts +8 -3
- package/lib/types.ts +3 -0
- package/lib/utils.ts +234 -0
- package/package.json +1 -1
- package/scoop/appwrite.config.json +3 -3
|
@@ -28,7 +28,7 @@ export const functions = new Command("functions")
|
|
|
28
28
|
helpWidth: process.stdout.columns || 80,
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
functions
|
|
31
|
+
const functionsListCommand = functions
|
|
32
32
|
.command(`list`)
|
|
33
33
|
.description(`Get a list of all the project's functions. You can use the query params to filter your results.`)
|
|
34
34
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId`)
|
|
@@ -46,7 +46,8 @@ functions
|
|
|
46
46
|
),
|
|
47
47
|
);
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
const functionsCreateCommand = functions
|
|
50
51
|
.command(`create`)
|
|
51
52
|
.description(`Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.`)
|
|
52
53
|
.requiredOption(`--function-id <function-id>`, `Function ID. Choose a custom ID or generate a random ID with \`ID.unique()\`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
|
|
@@ -91,7 +92,8 @@ functions
|
|
|
91
92
|
),
|
|
92
93
|
);
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
|
|
96
|
+
const functionsListRuntimesCommand = functions
|
|
95
97
|
.command(`list-runtimes`)
|
|
96
98
|
.description(`Get a list of all runtimes that are currently active on your instance.`)
|
|
97
99
|
.action(
|
|
@@ -100,7 +102,8 @@ functions
|
|
|
100
102
|
),
|
|
101
103
|
);
|
|
102
104
|
|
|
103
|
-
|
|
105
|
+
|
|
106
|
+
const functionsListSpecificationsCommand = functions
|
|
104
107
|
.command(`list-specifications`)
|
|
105
108
|
.description(`List allowed function specifications for this instance.`)
|
|
106
109
|
.action(
|
|
@@ -109,7 +112,8 @@ functions
|
|
|
109
112
|
),
|
|
110
113
|
);
|
|
111
114
|
|
|
112
|
-
|
|
115
|
+
|
|
116
|
+
const functionsListTemplatesCommand = functions
|
|
113
117
|
.command(`list-templates`)
|
|
114
118
|
.description(`List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.`)
|
|
115
119
|
.option(`--runtimes [runtimes...]`, `List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.`)
|
|
@@ -129,7 +133,8 @@ functions
|
|
|
129
133
|
),
|
|
130
134
|
);
|
|
131
135
|
|
|
132
|
-
|
|
136
|
+
|
|
137
|
+
const functionsGetTemplateCommand = functions
|
|
133
138
|
.command(`get-template`)
|
|
134
139
|
.description(`Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.`)
|
|
135
140
|
.requiredOption(`--template-id <template-id>`, `Template ID.`)
|
|
@@ -140,7 +145,8 @@ functions
|
|
|
140
145
|
),
|
|
141
146
|
);
|
|
142
147
|
|
|
143
|
-
|
|
148
|
+
|
|
149
|
+
const functionsListUsageCommand = functions
|
|
144
150
|
.command(`list-usage`)
|
|
145
151
|
.description(`Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.`)
|
|
146
152
|
.option(`--range <range>`, `Date range.`)
|
|
@@ -151,7 +157,8 @@ functions
|
|
|
151
157
|
),
|
|
152
158
|
);
|
|
153
159
|
|
|
154
|
-
|
|
160
|
+
|
|
161
|
+
const functionsGetCommand = functions
|
|
155
162
|
.command(`get`)
|
|
156
163
|
.description(`Get a function by its unique ID.`)
|
|
157
164
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -162,7 +169,8 @@ functions
|
|
|
162
169
|
),
|
|
163
170
|
);
|
|
164
171
|
|
|
165
|
-
|
|
172
|
+
|
|
173
|
+
const functionsUpdateCommand = functions
|
|
166
174
|
.command(`update`)
|
|
167
175
|
.description(`Update function by its unique ID.`)
|
|
168
176
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -207,7 +215,8 @@ functions
|
|
|
207
215
|
),
|
|
208
216
|
);
|
|
209
217
|
|
|
210
|
-
|
|
218
|
+
|
|
219
|
+
const functionsDeleteCommand = functions
|
|
211
220
|
.command(`delete`)
|
|
212
221
|
.description(`Delete a function by its unique ID.`)
|
|
213
222
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -218,7 +227,8 @@ functions
|
|
|
218
227
|
),
|
|
219
228
|
);
|
|
220
229
|
|
|
221
|
-
|
|
230
|
+
|
|
231
|
+
const functionsUpdateFunctionDeploymentCommand = functions
|
|
222
232
|
.command(`update-function-deployment`)
|
|
223
233
|
.description(`Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.`)
|
|
224
234
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -230,7 +240,8 @@ functions
|
|
|
230
240
|
),
|
|
231
241
|
);
|
|
232
242
|
|
|
233
|
-
|
|
243
|
+
|
|
244
|
+
const functionsListDeploymentsCommand = functions
|
|
234
245
|
.command(`list-deployments`)
|
|
235
246
|
.description(`Get a list of all the function's code deployments. You can use the query params to filter your results.`)
|
|
236
247
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -249,7 +260,8 @@ functions
|
|
|
249
260
|
),
|
|
250
261
|
);
|
|
251
262
|
|
|
252
|
-
|
|
263
|
+
|
|
264
|
+
const functionsCreateDeploymentCommand = functions
|
|
253
265
|
.command(`create-deployment`)
|
|
254
266
|
.description(`Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
|
|
255
267
|
|
|
@@ -268,7 +280,8 @@ Use the "command" param to set the entrypoint used to execute your code.`)
|
|
|
268
280
|
),
|
|
269
281
|
);
|
|
270
282
|
|
|
271
|
-
|
|
283
|
+
|
|
284
|
+
const functionsCreateDuplicateDeploymentCommand = functions
|
|
272
285
|
.command(`create-duplicate-deployment`)
|
|
273
286
|
.description(`Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.`)
|
|
274
287
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -281,7 +294,8 @@ functions
|
|
|
281
294
|
),
|
|
282
295
|
);
|
|
283
296
|
|
|
284
|
-
|
|
297
|
+
|
|
298
|
+
const functionsCreateTemplateDeploymentCommand = functions
|
|
285
299
|
.command(`create-template-deployment`)
|
|
286
300
|
.description(`Create a deployment based on a template.
|
|
287
301
|
|
|
@@ -305,7 +319,8 @@ Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/p
|
|
|
305
319
|
),
|
|
306
320
|
);
|
|
307
321
|
|
|
308
|
-
|
|
322
|
+
|
|
323
|
+
const functionsCreateVcsDeploymentCommand = functions
|
|
309
324
|
.command(`create-vcs-deployment`)
|
|
310
325
|
.description(`Create a deployment when a function is connected to VCS.
|
|
311
326
|
|
|
@@ -326,7 +341,8 @@ This endpoint lets you create deployment from a branch, commit, or a tag.`)
|
|
|
326
341
|
),
|
|
327
342
|
);
|
|
328
343
|
|
|
329
|
-
|
|
344
|
+
|
|
345
|
+
const functionsGetDeploymentCommand = functions
|
|
330
346
|
.command(`get-deployment`)
|
|
331
347
|
.description(`Get a function deployment by its unique ID.`)
|
|
332
348
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -338,7 +354,8 @@ functions
|
|
|
338
354
|
),
|
|
339
355
|
);
|
|
340
356
|
|
|
341
|
-
|
|
357
|
+
|
|
358
|
+
const functionsDeleteDeploymentCommand = functions
|
|
342
359
|
.command(`delete-deployment`)
|
|
343
360
|
.description(`Delete a code deployment by its unique ID.`)
|
|
344
361
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -350,7 +367,8 @@ functions
|
|
|
350
367
|
),
|
|
351
368
|
);
|
|
352
369
|
|
|
353
|
-
|
|
370
|
+
|
|
371
|
+
const functionsGetDeploymentDownloadCommand = functions
|
|
354
372
|
.command(`get-deployment-download`)
|
|
355
373
|
.description(`Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.`)
|
|
356
374
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -369,7 +387,8 @@ functions
|
|
|
369
387
|
),
|
|
370
388
|
);
|
|
371
389
|
|
|
372
|
-
|
|
390
|
+
|
|
391
|
+
const functionsUpdateDeploymentStatusCommand = functions
|
|
373
392
|
.command(`update-deployment-status`)
|
|
374
393
|
.description(`Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.`)
|
|
375
394
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -381,7 +400,8 @@ functions
|
|
|
381
400
|
),
|
|
382
401
|
);
|
|
383
402
|
|
|
384
|
-
|
|
403
|
+
|
|
404
|
+
const functionsListExecutionsCommand = functions
|
|
385
405
|
.command(`list-executions`)
|
|
386
406
|
.description(`Get a list of all the current user function execution logs. You can use the query params to filter your results.`)
|
|
387
407
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -399,7 +419,8 @@ functions
|
|
|
399
419
|
),
|
|
400
420
|
);
|
|
401
421
|
|
|
402
|
-
|
|
422
|
+
|
|
423
|
+
const functionsCreateExecutionCommand = functions
|
|
403
424
|
.command(`create-execution`)
|
|
404
425
|
.description(`Trigger a function execution. The returned object will return you the current execution status. You can ping the \`Get Execution\` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.`)
|
|
405
426
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -421,7 +442,8 @@ functions
|
|
|
421
442
|
),
|
|
422
443
|
);
|
|
423
444
|
|
|
424
|
-
|
|
445
|
+
|
|
446
|
+
const functionsGetExecutionCommand = functions
|
|
425
447
|
.command(`get-execution`)
|
|
426
448
|
.description(`Get a function execution log by its unique ID.`)
|
|
427
449
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -433,7 +455,8 @@ functions
|
|
|
433
455
|
),
|
|
434
456
|
);
|
|
435
457
|
|
|
436
|
-
|
|
458
|
+
|
|
459
|
+
const functionsDeleteExecutionCommand = functions
|
|
437
460
|
.command(`delete-execution`)
|
|
438
461
|
.description(`Delete a function execution by its unique ID.`)
|
|
439
462
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -445,7 +468,8 @@ functions
|
|
|
445
468
|
),
|
|
446
469
|
);
|
|
447
470
|
|
|
448
|
-
|
|
471
|
+
|
|
472
|
+
const functionsGetUsageCommand = functions
|
|
449
473
|
.command(`get-usage`)
|
|
450
474
|
.description(`Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.`)
|
|
451
475
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
@@ -457,7 +481,8 @@ functions
|
|
|
457
481
|
),
|
|
458
482
|
);
|
|
459
483
|
|
|
460
|
-
|
|
484
|
+
|
|
485
|
+
const functionsListVariablesCommand = functions
|
|
461
486
|
.command(`list-variables`)
|
|
462
487
|
.description(`Get a list of all variables of a specific function.`)
|
|
463
488
|
.requiredOption(`--function-id <function-id>`, `Function unique ID.`)
|
|
@@ -468,7 +493,8 @@ functions
|
|
|
468
493
|
),
|
|
469
494
|
);
|
|
470
495
|
|
|
471
|
-
|
|
496
|
+
|
|
497
|
+
const functionsCreateVariableCommand = functions
|
|
472
498
|
.command(`create-variable`)
|
|
473
499
|
.description(`Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.`)
|
|
474
500
|
.requiredOption(`--function-id <function-id>`, `Function unique ID.`)
|
|
@@ -487,7 +513,8 @@ functions
|
|
|
487
513
|
),
|
|
488
514
|
);
|
|
489
515
|
|
|
490
|
-
|
|
516
|
+
|
|
517
|
+
const functionsGetVariableCommand = functions
|
|
491
518
|
.command(`get-variable`)
|
|
492
519
|
.description(`Get a variable by its unique ID.`)
|
|
493
520
|
.requiredOption(`--function-id <function-id>`, `Function unique ID.`)
|
|
@@ -499,7 +526,8 @@ functions
|
|
|
499
526
|
),
|
|
500
527
|
);
|
|
501
528
|
|
|
502
|
-
|
|
529
|
+
|
|
530
|
+
const functionsUpdateVariableCommand = functions
|
|
503
531
|
.command(`update-variable`)
|
|
504
532
|
.description(`Update variable by its unique ID.`)
|
|
505
533
|
.requiredOption(`--function-id <function-id>`, `Function unique ID.`)
|
|
@@ -519,7 +547,8 @@ functions
|
|
|
519
547
|
),
|
|
520
548
|
);
|
|
521
549
|
|
|
522
|
-
|
|
550
|
+
|
|
551
|
+
const functionsDeleteVariableCommand = functions
|
|
523
552
|
.command(`delete-variable`)
|
|
524
553
|
.description(`Delete a variable by its unique ID.`)
|
|
525
554
|
.requiredOption(`--function-id <function-id>`, `Function unique ID.`)
|
|
@@ -531,3 +560,4 @@ functions
|
|
|
531
560
|
),
|
|
532
561
|
);
|
|
533
562
|
|
|
563
|
+
|
|
@@ -26,7 +26,7 @@ export const graphql = new Command("graphql")
|
|
|
26
26
|
helpWidth: process.stdout.columns || 80,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
graphql
|
|
29
|
+
const graphqlQueryCommand = graphql
|
|
30
30
|
.command(`query`)
|
|
31
31
|
.description(`Execute a GraphQL mutation.`)
|
|
32
32
|
.requiredOption(`--query <query>`, `The query or queries to execute.`)
|
|
@@ -37,7 +37,8 @@ graphql
|
|
|
37
37
|
),
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
const graphqlMutationCommand = graphql
|
|
41
42
|
.command(`mutation`)
|
|
42
43
|
.description(`Execute a GraphQL mutation.`)
|
|
43
44
|
.requiredOption(`--query <query>`, `The query or queries to execute.`)
|
|
@@ -48,3 +49,4 @@ graphql
|
|
|
48
49
|
),
|
|
49
50
|
);
|
|
50
51
|
|
|
52
|
+
|
|
@@ -26,7 +26,7 @@ export const health = new Command("health")
|
|
|
26
26
|
helpWidth: process.stdout.columns || 80,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
health
|
|
29
|
+
const healthGetCommand = health
|
|
30
30
|
.command(`get`)
|
|
31
31
|
.description(`Check the Appwrite HTTP server is up and responsive.`)
|
|
32
32
|
.action(
|
|
@@ -35,7 +35,8 @@ health
|
|
|
35
35
|
),
|
|
36
36
|
);
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
const healthGetAntivirusCommand = health
|
|
39
40
|
.command(`get-antivirus`)
|
|
40
41
|
.description(`Check the Appwrite Antivirus server is up and connection is successful.`)
|
|
41
42
|
.action(
|
|
@@ -44,7 +45,8 @@ health
|
|
|
44
45
|
),
|
|
45
46
|
);
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
|
|
49
|
+
const healthGetCacheCommand = health
|
|
48
50
|
.command(`get-cache`)
|
|
49
51
|
.description(`Check the Appwrite in-memory cache servers are up and connection is successful.`)
|
|
50
52
|
.action(
|
|
@@ -53,7 +55,8 @@ health
|
|
|
53
55
|
),
|
|
54
56
|
);
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
|
|
59
|
+
const healthGetCertificateCommand = health
|
|
57
60
|
.command(`get-certificate`)
|
|
58
61
|
.description(`Get the SSL certificate for a domain`)
|
|
59
62
|
.option(`--domain <domain>`, `string`)
|
|
@@ -64,7 +67,8 @@ health
|
|
|
64
67
|
),
|
|
65
68
|
);
|
|
66
69
|
|
|
67
|
-
|
|
70
|
+
|
|
71
|
+
const healthGetDBCommand = health
|
|
68
72
|
.command(`get-db`)
|
|
69
73
|
.description(`Check the Appwrite database servers are up and connection is successful.`)
|
|
70
74
|
.action(
|
|
@@ -73,7 +77,8 @@ health
|
|
|
73
77
|
),
|
|
74
78
|
);
|
|
75
79
|
|
|
76
|
-
|
|
80
|
+
|
|
81
|
+
const healthGetPubSubCommand = health
|
|
77
82
|
.command(`get-pub-sub`)
|
|
78
83
|
.description(`Check the Appwrite pub-sub servers are up and connection is successful.`)
|
|
79
84
|
.action(
|
|
@@ -82,7 +87,8 @@ health
|
|
|
82
87
|
),
|
|
83
88
|
);
|
|
84
89
|
|
|
85
|
-
|
|
90
|
+
|
|
91
|
+
const healthGetQueueAuditsCommand = health
|
|
86
92
|
.command(`get-queue-audits`)
|
|
87
93
|
.description(`Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.`)
|
|
88
94
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -93,7 +99,8 @@ health
|
|
|
93
99
|
),
|
|
94
100
|
);
|
|
95
101
|
|
|
96
|
-
|
|
102
|
+
|
|
103
|
+
const healthGetQueueBuildsCommand = health
|
|
97
104
|
.command(`get-queue-builds`)
|
|
98
105
|
.description(`Get the number of builds that are waiting to be processed in the Appwrite internal queue server.`)
|
|
99
106
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -104,7 +111,8 @@ health
|
|
|
104
111
|
),
|
|
105
112
|
);
|
|
106
113
|
|
|
107
|
-
|
|
114
|
+
|
|
115
|
+
const healthGetQueueCertificatesCommand = health
|
|
108
116
|
.command(`get-queue-certificates`)
|
|
109
117
|
.description(`Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.`)
|
|
110
118
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -115,7 +123,8 @@ health
|
|
|
115
123
|
),
|
|
116
124
|
);
|
|
117
125
|
|
|
118
|
-
|
|
126
|
+
|
|
127
|
+
const healthGetQueueDatabasesCommand = health
|
|
119
128
|
.command(`get-queue-databases`)
|
|
120
129
|
.description(`Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.`)
|
|
121
130
|
.option(`--name <name>`, `Queue name for which to check the queue size`)
|
|
@@ -127,7 +136,8 @@ health
|
|
|
127
136
|
),
|
|
128
137
|
);
|
|
129
138
|
|
|
130
|
-
|
|
139
|
+
|
|
140
|
+
const healthGetQueueDeletesCommand = health
|
|
131
141
|
.command(`get-queue-deletes`)
|
|
132
142
|
.description(`Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.`)
|
|
133
143
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -138,7 +148,8 @@ health
|
|
|
138
148
|
),
|
|
139
149
|
);
|
|
140
150
|
|
|
141
|
-
|
|
151
|
+
|
|
152
|
+
const healthGetFailedJobsCommand = health
|
|
142
153
|
.command(`get-failed-jobs`)
|
|
143
154
|
.description(`Returns the amount of failed jobs in a given queue.
|
|
144
155
|
`)
|
|
@@ -151,7 +162,8 @@ health
|
|
|
151
162
|
),
|
|
152
163
|
);
|
|
153
164
|
|
|
154
|
-
|
|
165
|
+
|
|
166
|
+
const healthGetQueueFunctionsCommand = health
|
|
155
167
|
.command(`get-queue-functions`)
|
|
156
168
|
.description(`Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.`)
|
|
157
169
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -162,7 +174,8 @@ health
|
|
|
162
174
|
),
|
|
163
175
|
);
|
|
164
176
|
|
|
165
|
-
|
|
177
|
+
|
|
178
|
+
const healthGetQueueLogsCommand = health
|
|
166
179
|
.command(`get-queue-logs`)
|
|
167
180
|
.description(`Get the number of logs that are waiting to be processed in the Appwrite internal queue server.`)
|
|
168
181
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -173,7 +186,8 @@ health
|
|
|
173
186
|
),
|
|
174
187
|
);
|
|
175
188
|
|
|
176
|
-
|
|
189
|
+
|
|
190
|
+
const healthGetQueueMailsCommand = health
|
|
177
191
|
.command(`get-queue-mails`)
|
|
178
192
|
.description(`Get the number of mails that are waiting to be processed in the Appwrite internal queue server.`)
|
|
179
193
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -184,7 +198,8 @@ health
|
|
|
184
198
|
),
|
|
185
199
|
);
|
|
186
200
|
|
|
187
|
-
|
|
201
|
+
|
|
202
|
+
const healthGetQueueMessagingCommand = health
|
|
188
203
|
.command(`get-queue-messaging`)
|
|
189
204
|
.description(`Get the number of messages that are waiting to be processed in the Appwrite internal queue server.`)
|
|
190
205
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -195,7 +210,8 @@ health
|
|
|
195
210
|
),
|
|
196
211
|
);
|
|
197
212
|
|
|
198
|
-
|
|
213
|
+
|
|
214
|
+
const healthGetQueueMigrationsCommand = health
|
|
199
215
|
.command(`get-queue-migrations`)
|
|
200
216
|
.description(`Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.`)
|
|
201
217
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -206,7 +222,8 @@ health
|
|
|
206
222
|
),
|
|
207
223
|
);
|
|
208
224
|
|
|
209
|
-
|
|
225
|
+
|
|
226
|
+
const healthGetQueueStatsResourcesCommand = health
|
|
210
227
|
.command(`get-queue-stats-resources`)
|
|
211
228
|
.description(`Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.`)
|
|
212
229
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -217,7 +234,8 @@ health
|
|
|
217
234
|
),
|
|
218
235
|
);
|
|
219
236
|
|
|
220
|
-
|
|
237
|
+
|
|
238
|
+
const healthGetQueueUsageCommand = health
|
|
221
239
|
.command(`get-queue-usage`)
|
|
222
240
|
.description(`Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.`)
|
|
223
241
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -228,7 +246,8 @@ health
|
|
|
228
246
|
),
|
|
229
247
|
);
|
|
230
248
|
|
|
231
|
-
|
|
249
|
+
|
|
250
|
+
const healthGetQueueWebhooksCommand = health
|
|
232
251
|
.command(`get-queue-webhooks`)
|
|
233
252
|
.description(`Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.`)
|
|
234
253
|
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
|
|
@@ -239,7 +258,8 @@ health
|
|
|
239
258
|
),
|
|
240
259
|
);
|
|
241
260
|
|
|
242
|
-
|
|
261
|
+
|
|
262
|
+
const healthGetStorageCommand = health
|
|
243
263
|
.command(`get-storage`)
|
|
244
264
|
.description(`Check the Appwrite storage device is up and connection is successful.`)
|
|
245
265
|
.action(
|
|
@@ -248,7 +268,8 @@ health
|
|
|
248
268
|
),
|
|
249
269
|
);
|
|
250
270
|
|
|
251
|
-
|
|
271
|
+
|
|
272
|
+
const healthGetStorageLocalCommand = health
|
|
252
273
|
.command(`get-storage-local`)
|
|
253
274
|
.description(`Check the Appwrite local storage device is up and connection is successful.`)
|
|
254
275
|
.action(
|
|
@@ -257,7 +278,8 @@ health
|
|
|
257
278
|
),
|
|
258
279
|
);
|
|
259
280
|
|
|
260
|
-
|
|
281
|
+
|
|
282
|
+
const healthGetTimeCommand = health
|
|
261
283
|
.command(`get-time`)
|
|
262
284
|
.description(`Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.`)
|
|
263
285
|
.action(
|
|
@@ -266,3 +288,4 @@ health
|
|
|
266
288
|
),
|
|
267
289
|
);
|
|
268
290
|
|
|
291
|
+
|
|
@@ -26,7 +26,7 @@ export const locale = new Command("locale")
|
|
|
26
26
|
helpWidth: process.stdout.columns || 80,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
locale
|
|
29
|
+
const localeGetCommand = locale
|
|
30
30
|
.command(`get`)
|
|
31
31
|
.description(`Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.
|
|
32
32
|
|
|
@@ -37,7 +37,8 @@ locale
|
|
|
37
37
|
),
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
const localeListCodesCommand = locale
|
|
41
42
|
.command(`list-codes`)
|
|
42
43
|
.description(`List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).`)
|
|
43
44
|
.action(
|
|
@@ -46,7 +47,8 @@ locale
|
|
|
46
47
|
),
|
|
47
48
|
);
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
|
|
51
|
+
const localeListContinentsCommand = locale
|
|
50
52
|
.command(`list-continents`)
|
|
51
53
|
.description(`List of all continents. You can use the locale header to get the data in a supported language.`)
|
|
52
54
|
.action(
|
|
@@ -55,7 +57,8 @@ locale
|
|
|
55
57
|
),
|
|
56
58
|
);
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
const localeListCountriesCommand = locale
|
|
59
62
|
.command(`list-countries`)
|
|
60
63
|
.description(`List of all countries. You can use the locale header to get the data in a supported language.`)
|
|
61
64
|
.action(
|
|
@@ -64,7 +67,8 @@ locale
|
|
|
64
67
|
),
|
|
65
68
|
);
|
|
66
69
|
|
|
67
|
-
|
|
70
|
+
|
|
71
|
+
const localeListCountriesEUCommand = locale
|
|
68
72
|
.command(`list-countries-eu`)
|
|
69
73
|
.description(`List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.`)
|
|
70
74
|
.action(
|
|
@@ -73,7 +77,8 @@ locale
|
|
|
73
77
|
),
|
|
74
78
|
);
|
|
75
79
|
|
|
76
|
-
|
|
80
|
+
|
|
81
|
+
const localeListCountriesPhonesCommand = locale
|
|
77
82
|
.command(`list-countries-phones`)
|
|
78
83
|
.description(`List of all countries phone codes. You can use the locale header to get the data in a supported language.`)
|
|
79
84
|
.action(
|
|
@@ -82,7 +87,8 @@ locale
|
|
|
82
87
|
),
|
|
83
88
|
);
|
|
84
89
|
|
|
85
|
-
|
|
90
|
+
|
|
91
|
+
const localeListCurrenciesCommand = locale
|
|
86
92
|
.command(`list-currencies`)
|
|
87
93
|
.description(`List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.`)
|
|
88
94
|
.action(
|
|
@@ -91,7 +97,8 @@ locale
|
|
|
91
97
|
),
|
|
92
98
|
);
|
|
93
99
|
|
|
94
|
-
|
|
100
|
+
|
|
101
|
+
const localeListLanguagesCommand = locale
|
|
95
102
|
.command(`list-languages`)
|
|
96
103
|
.description(`List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.`)
|
|
97
104
|
.action(
|
|
@@ -100,3 +107,4 @@ locale
|
|
|
100
107
|
),
|
|
101
108
|
);
|
|
102
109
|
|
|
110
|
+
|