appwrite-cli 6.0.0-rc.5 → 6.0.0-rc.7
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/README.md +3 -3
- package/docs/examples/functions/{download-deployment.md → get-deployment-download.md} +1 -1
- package/docs/examples/functions/get-template.md +2 -0
- package/docs/examples/functions/list-templates.md +5 -0
- package/index.js +4 -3
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +3 -3
- package/lib/commands/account.js +1 -49
- package/lib/commands/assistant.js +1 -2
- package/lib/commands/avatars.js +1 -8
- package/lib/commands/console.js +1 -2
- package/lib/commands/databases.js +1 -49
- package/lib/commands/functions.js +121 -35
- package/lib/commands/generic.js +11 -11
- package/lib/commands/graphql.js +1 -3
- package/lib/commands/health.js +1 -24
- package/lib/commands/init.js +7 -20
- package/lib/commands/locale.js +1 -9
- package/lib/commands/messaging.js +1 -47
- package/lib/commands/migrations.js +1 -17
- package/lib/commands/project.js +1 -7
- package/lib/commands/projects.js +1 -46
- package/lib/commands/proxy.js +1 -6
- package/lib/commands/pull.js +73 -35
- package/lib/commands/push.js +122 -55
- package/lib/commands/run.js +22 -22
- package/lib/commands/storage.js +1 -16
- package/lib/commands/teams.js +1 -15
- package/lib/commands/users.js +1 -44
- package/lib/commands/vcs.js +1 -11
- package/lib/config.js +11 -7
- package/lib/emulation/docker.js +29 -33
- package/lib/paginate.js +3 -1
- package/lib/parser.js +12 -15
- package/lib/questions.js +16 -31
- package/package.json +3 -2
- package/scoop/appwrite.json +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://twitter.com/appwrite)
|
|
7
7
|
[](https://appwrite.io/discord)
|
|
8
8
|
|
|
9
|
-
**This SDK is compatible with Appwrite server version
|
|
9
|
+
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).**
|
|
10
10
|
|
|
11
11
|
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Command Line SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
|
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
31
|
$ appwrite -v
|
|
32
|
-
6.0.0-rc.
|
|
32
|
+
6.0.0-rc.7
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Install using prebuilt binaries
|
|
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
|
|
|
60
60
|
Once the installation completes, you can verify your install using
|
|
61
61
|
```
|
|
62
62
|
$ appwrite -v
|
|
63
|
-
6.0.0-rc.
|
|
63
|
+
6.0.0-rc.7
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## Getting Started
|
package/index.js
CHANGED
|
@@ -41,15 +41,16 @@ program
|
|
|
41
41
|
.description(commandDescriptions['main'])
|
|
42
42
|
.configureHelp({
|
|
43
43
|
helpWidth: process.stdout.columns || 80,
|
|
44
|
-
sortSubcommands: true
|
|
44
|
+
sortSubcommands: true,
|
|
45
45
|
})
|
|
46
|
-
.
|
|
46
|
+
.helpOption('-h, --help', "Display help for command")
|
|
47
|
+
.version(version, "-v, --version", "Output the version number")
|
|
47
48
|
.option("-V, --verbose", "Show complete error log")
|
|
48
49
|
.option("-j, --json", "Output in JSON format")
|
|
49
50
|
.hook('preAction', migrate)
|
|
50
51
|
.option("-f,--force", "Flag to confirm all warnings")
|
|
51
52
|
.option("-a,--all", "Flag to push all resources")
|
|
52
|
-
.option("--id [id...]", "Flag to pass list of ids for a
|
|
53
|
+
.option("--id [id...]", "Flag to pass a list of ids for a given action")
|
|
53
54
|
.option("--report", "Enable reporting in case of CLI errors")
|
|
54
55
|
.on("option:json", () => {
|
|
55
56
|
cliConfig.json = true;
|
package/install.ps1
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
# You can use "View source" of this page to see the full script.
|
|
14
14
|
|
|
15
15
|
# REPO
|
|
16
|
-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.
|
|
17
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
package/install.sh
CHANGED
|
@@ -97,7 +97,7 @@ printSuccess() {
|
|
|
97
97
|
downloadBinary() {
|
|
98
98
|
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
|
|
99
99
|
|
|
100
|
-
GITHUB_LATEST_VERSION="6.0.0-rc.
|
|
100
|
+
GITHUB_LATEST_VERSION="6.0.0-rc.7"
|
|
101
101
|
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
|
|
102
102
|
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
|
|
103
103
|
|
package/lib/client.js
CHANGED
|
@@ -16,9 +16,9 @@ class Client {
|
|
|
16
16
|
'x-sdk-name': 'Command Line',
|
|
17
17
|
'x-sdk-platform': 'console',
|
|
18
18
|
'x-sdk-language': 'cli',
|
|
19
|
-
'x-sdk-version': '6.0.0-rc.
|
|
20
|
-
'user-agent' : `AppwriteCLI/6.0.0-rc.
|
|
21
|
-
'X-Appwrite-Response-Format' : '1.
|
|
19
|
+
'x-sdk-version': '6.0.0-rc.7',
|
|
20
|
+
'user-agent' : `AppwriteCLI/6.0.0-rc.7 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
21
|
+
'X-Appwrite-Response-Format' : '1.6.0',
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
|
package/lib/commands/account.js
CHANGED
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const account = new Command("account").description(commandDescriptions['account']).configureHelp({
|
|
38
|
+
const account = new Command("account").description(commandDescriptions['account'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -66,7 +66,6 @@ const accountGet = async ({parseOutput = true, overrideForCli = false, sdk = und
|
|
|
66
66
|
showConsoleLink('account', 'get');
|
|
67
67
|
} else {
|
|
68
68
|
parse(response)
|
|
69
|
-
success()
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
|
|
@@ -114,7 +113,6 @@ const accountCreate = async ({userId,email,password,name,parseOutput = true, ove
|
|
|
114
113
|
|
|
115
114
|
if (parseOutput) {
|
|
116
115
|
parse(response)
|
|
117
|
-
success()
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
return response;
|
|
@@ -145,7 +143,6 @@ const accountDelete = async ({parseOutput = true, overrideForCli = false, sdk =
|
|
|
145
143
|
|
|
146
144
|
if (parseOutput) {
|
|
147
145
|
parse(response)
|
|
148
|
-
success()
|
|
149
146
|
}
|
|
150
147
|
|
|
151
148
|
return response;
|
|
@@ -184,7 +181,6 @@ const accountUpdateEmail = async ({email,password,parseOutput = true, overrideFo
|
|
|
184
181
|
|
|
185
182
|
if (parseOutput) {
|
|
186
183
|
parse(response)
|
|
187
|
-
success()
|
|
188
184
|
}
|
|
189
185
|
|
|
190
186
|
return response;
|
|
@@ -219,7 +215,6 @@ const accountListIdentities = async ({queries,parseOutput = true, overrideForCli
|
|
|
219
215
|
|
|
220
216
|
if (parseOutput) {
|
|
221
217
|
parse(response)
|
|
222
|
-
success()
|
|
223
218
|
}
|
|
224
219
|
|
|
225
220
|
return response;
|
|
@@ -251,7 +246,6 @@ const accountDeleteIdentity = async ({identityId,parseOutput = true, overrideFor
|
|
|
251
246
|
|
|
252
247
|
if (parseOutput) {
|
|
253
248
|
parse(response)
|
|
254
|
-
success()
|
|
255
249
|
}
|
|
256
250
|
|
|
257
251
|
return response;
|
|
@@ -282,7 +276,6 @@ const accountCreateJWT = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
282
276
|
|
|
283
277
|
if (parseOutput) {
|
|
284
278
|
parse(response)
|
|
285
|
-
success()
|
|
286
279
|
}
|
|
287
280
|
|
|
288
281
|
return response;
|
|
@@ -317,7 +310,6 @@ const accountListLogs = async ({queries,parseOutput = true, overrideForCli = fal
|
|
|
317
310
|
|
|
318
311
|
if (parseOutput) {
|
|
319
312
|
parse(response)
|
|
320
|
-
success()
|
|
321
313
|
}
|
|
322
314
|
|
|
323
315
|
return response;
|
|
@@ -352,7 +344,6 @@ const accountUpdateMFA = async ({mfa,parseOutput = true, overrideForCli = false,
|
|
|
352
344
|
|
|
353
345
|
if (parseOutput) {
|
|
354
346
|
parse(response)
|
|
355
|
-
success()
|
|
356
347
|
}
|
|
357
348
|
|
|
358
349
|
return response;
|
|
@@ -384,7 +375,6 @@ const accountCreateMfaAuthenticator = async ({type,parseOutput = true, overrideF
|
|
|
384
375
|
|
|
385
376
|
if (parseOutput) {
|
|
386
377
|
parse(response)
|
|
387
|
-
success()
|
|
388
378
|
}
|
|
389
379
|
|
|
390
380
|
return response;
|
|
@@ -420,7 +410,6 @@ const accountUpdateMfaAuthenticator = async ({type,otp,parseOutput = true, overr
|
|
|
420
410
|
|
|
421
411
|
if (parseOutput) {
|
|
422
412
|
parse(response)
|
|
423
|
-
success()
|
|
424
413
|
}
|
|
425
414
|
|
|
426
415
|
return response;
|
|
@@ -452,7 +441,6 @@ const accountDeleteMfaAuthenticator = async ({type,parseOutput = true, overrideF
|
|
|
452
441
|
|
|
453
442
|
if (parseOutput) {
|
|
454
443
|
parse(response)
|
|
455
|
-
success()
|
|
456
444
|
}
|
|
457
445
|
|
|
458
446
|
return response;
|
|
@@ -487,7 +475,6 @@ const accountCreateMfaChallenge = async ({factor,parseOutput = true, overrideFor
|
|
|
487
475
|
|
|
488
476
|
if (parseOutput) {
|
|
489
477
|
parse(response)
|
|
490
|
-
success()
|
|
491
478
|
}
|
|
492
479
|
|
|
493
480
|
return response;
|
|
@@ -526,7 +513,6 @@ const accountUpdateMfaChallenge = async ({challengeId,otp,parseOutput = true, ov
|
|
|
526
513
|
|
|
527
514
|
if (parseOutput) {
|
|
528
515
|
parse(response)
|
|
529
|
-
success()
|
|
530
516
|
}
|
|
531
517
|
|
|
532
518
|
return response;
|
|
@@ -557,7 +543,6 @@ const accountListMfaFactors = async ({parseOutput = true, overrideForCli = false
|
|
|
557
543
|
|
|
558
544
|
if (parseOutput) {
|
|
559
545
|
parse(response)
|
|
560
|
-
success()
|
|
561
546
|
}
|
|
562
547
|
|
|
563
548
|
return response;
|
|
@@ -588,7 +573,6 @@ const accountGetMfaRecoveryCodes = async ({parseOutput = true, overrideForCli =
|
|
|
588
573
|
|
|
589
574
|
if (parseOutput) {
|
|
590
575
|
parse(response)
|
|
591
|
-
success()
|
|
592
576
|
}
|
|
593
577
|
|
|
594
578
|
return response;
|
|
@@ -619,7 +603,6 @@ const accountCreateMfaRecoveryCodes = async ({parseOutput = true, overrideForCli
|
|
|
619
603
|
|
|
620
604
|
if (parseOutput) {
|
|
621
605
|
parse(response)
|
|
622
|
-
success()
|
|
623
606
|
}
|
|
624
607
|
|
|
625
608
|
return response;
|
|
@@ -650,7 +633,6 @@ const accountUpdateMfaRecoveryCodes = async ({parseOutput = true, overrideForCli
|
|
|
650
633
|
|
|
651
634
|
if (parseOutput) {
|
|
652
635
|
parse(response)
|
|
653
|
-
success()
|
|
654
636
|
}
|
|
655
637
|
|
|
656
638
|
return response;
|
|
@@ -685,7 +667,6 @@ const accountUpdateName = async ({name,parseOutput = true, overrideForCli = fals
|
|
|
685
667
|
|
|
686
668
|
if (parseOutput) {
|
|
687
669
|
parse(response)
|
|
688
|
-
success()
|
|
689
670
|
}
|
|
690
671
|
|
|
691
672
|
return response;
|
|
@@ -724,7 +705,6 @@ const accountUpdatePassword = async ({password,oldPassword,parseOutput = true, o
|
|
|
724
705
|
|
|
725
706
|
if (parseOutput) {
|
|
726
707
|
parse(response)
|
|
727
|
-
success()
|
|
728
708
|
}
|
|
729
709
|
|
|
730
710
|
return response;
|
|
@@ -763,7 +743,6 @@ const accountUpdatePhone = async ({phone,password,parseOutput = true, overrideFo
|
|
|
763
743
|
|
|
764
744
|
if (parseOutput) {
|
|
765
745
|
parse(response)
|
|
766
|
-
success()
|
|
767
746
|
}
|
|
768
747
|
|
|
769
748
|
return response;
|
|
@@ -794,7 +773,6 @@ const accountGetPrefs = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
794
773
|
|
|
795
774
|
if (parseOutput) {
|
|
796
775
|
parse(response)
|
|
797
|
-
success()
|
|
798
776
|
}
|
|
799
777
|
|
|
800
778
|
return response;
|
|
@@ -829,7 +807,6 @@ const accountUpdatePrefs = async ({prefs,parseOutput = true, overrideForCli = fa
|
|
|
829
807
|
|
|
830
808
|
if (parseOutput) {
|
|
831
809
|
parse(response)
|
|
832
|
-
success()
|
|
833
810
|
}
|
|
834
811
|
|
|
835
812
|
return response;
|
|
@@ -868,7 +845,6 @@ const accountCreateRecovery = async ({email,url,parseOutput = true, overrideForC
|
|
|
868
845
|
|
|
869
846
|
if (parseOutput) {
|
|
870
847
|
parse(response)
|
|
871
|
-
success()
|
|
872
848
|
}
|
|
873
849
|
|
|
874
850
|
return response;
|
|
@@ -911,7 +887,6 @@ const accountUpdateRecovery = async ({userId,secret,password,parseOutput = true,
|
|
|
911
887
|
|
|
912
888
|
if (parseOutput) {
|
|
913
889
|
parse(response)
|
|
914
|
-
success()
|
|
915
890
|
}
|
|
916
891
|
|
|
917
892
|
return response;
|
|
@@ -945,7 +920,6 @@ const accountListSessions = async ({parseOutput = true, overrideForCli = false,
|
|
|
945
920
|
showConsoleLink('account', 'listSessions');
|
|
946
921
|
} else {
|
|
947
922
|
parse(response)
|
|
948
|
-
success()
|
|
949
923
|
}
|
|
950
924
|
}
|
|
951
925
|
|
|
@@ -977,7 +951,6 @@ const accountDeleteSessions = async ({parseOutput = true, overrideForCli = false
|
|
|
977
951
|
|
|
978
952
|
if (parseOutput) {
|
|
979
953
|
parse(response)
|
|
980
|
-
success()
|
|
981
954
|
}
|
|
982
955
|
|
|
983
956
|
return response;
|
|
@@ -1008,7 +981,6 @@ const accountCreateAnonymousSession = async ({parseOutput = true, overrideForCli
|
|
|
1008
981
|
|
|
1009
982
|
if (parseOutput) {
|
|
1010
983
|
parse(response)
|
|
1011
|
-
success()
|
|
1012
984
|
}
|
|
1013
985
|
|
|
1014
986
|
return response;
|
|
@@ -1047,7 +1019,6 @@ const accountCreateEmailPasswordSession = async ({email,password,parseOutput = t
|
|
|
1047
1019
|
|
|
1048
1020
|
if (parseOutput) {
|
|
1049
1021
|
parse(response)
|
|
1050
|
-
success()
|
|
1051
1022
|
}
|
|
1052
1023
|
|
|
1053
1024
|
return response;
|
|
@@ -1086,7 +1057,6 @@ const accountUpdateMagicURLSession = async ({userId,secret,parseOutput = true, o
|
|
|
1086
1057
|
|
|
1087
1058
|
if (parseOutput) {
|
|
1088
1059
|
parse(response)
|
|
1089
|
-
success()
|
|
1090
1060
|
}
|
|
1091
1061
|
|
|
1092
1062
|
return response;
|
|
@@ -1130,7 +1100,6 @@ const accountCreateOAuth2Session = async ({provider,success,failure,scopes,parse
|
|
|
1130
1100
|
|
|
1131
1101
|
if (parseOutput) {
|
|
1132
1102
|
parse(response)
|
|
1133
|
-
success()
|
|
1134
1103
|
}
|
|
1135
1104
|
|
|
1136
1105
|
return response;
|
|
@@ -1169,7 +1138,6 @@ const accountUpdatePhoneSession = async ({userId,secret,parseOutput = true, over
|
|
|
1169
1138
|
|
|
1170
1139
|
if (parseOutput) {
|
|
1171
1140
|
parse(response)
|
|
1172
|
-
success()
|
|
1173
1141
|
}
|
|
1174
1142
|
|
|
1175
1143
|
return response;
|
|
@@ -1208,7 +1176,6 @@ const accountCreateSession = async ({userId,secret,parseOutput = true, overrideF
|
|
|
1208
1176
|
|
|
1209
1177
|
if (parseOutput) {
|
|
1210
1178
|
parse(response)
|
|
1211
|
-
success()
|
|
1212
1179
|
}
|
|
1213
1180
|
|
|
1214
1181
|
return response;
|
|
@@ -1240,7 +1207,6 @@ const accountGetSession = async ({sessionId,parseOutput = true, overrideForCli =
|
|
|
1240
1207
|
|
|
1241
1208
|
if (parseOutput) {
|
|
1242
1209
|
parse(response)
|
|
1243
|
-
success()
|
|
1244
1210
|
}
|
|
1245
1211
|
|
|
1246
1212
|
return response;
|
|
@@ -1272,7 +1238,6 @@ const accountUpdateSession = async ({sessionId,parseOutput = true, overrideForCl
|
|
|
1272
1238
|
|
|
1273
1239
|
if (parseOutput) {
|
|
1274
1240
|
parse(response)
|
|
1275
|
-
success()
|
|
1276
1241
|
}
|
|
1277
1242
|
|
|
1278
1243
|
return response;
|
|
@@ -1304,7 +1269,6 @@ const accountDeleteSession = async ({sessionId,parseOutput = true, overrideForCl
|
|
|
1304
1269
|
|
|
1305
1270
|
if (parseOutput) {
|
|
1306
1271
|
parse(response)
|
|
1307
|
-
success()
|
|
1308
1272
|
}
|
|
1309
1273
|
|
|
1310
1274
|
return response;
|
|
@@ -1335,7 +1299,6 @@ const accountUpdateStatus = async ({parseOutput = true, overrideForCli = false,
|
|
|
1335
1299
|
|
|
1336
1300
|
if (parseOutput) {
|
|
1337
1301
|
parse(response)
|
|
1338
|
-
success()
|
|
1339
1302
|
}
|
|
1340
1303
|
|
|
1341
1304
|
return response;
|
|
@@ -1378,7 +1341,6 @@ const accountCreatePushTarget = async ({targetId,identifier,providerId,parseOutp
|
|
|
1378
1341
|
|
|
1379
1342
|
if (parseOutput) {
|
|
1380
1343
|
parse(response)
|
|
1381
|
-
success()
|
|
1382
1344
|
}
|
|
1383
1345
|
|
|
1384
1346
|
return response;
|
|
@@ -1414,7 +1376,6 @@ const accountUpdatePushTarget = async ({targetId,identifier,parseOutput = true,
|
|
|
1414
1376
|
|
|
1415
1377
|
if (parseOutput) {
|
|
1416
1378
|
parse(response)
|
|
1417
|
-
success()
|
|
1418
1379
|
}
|
|
1419
1380
|
|
|
1420
1381
|
return response;
|
|
@@ -1446,7 +1407,6 @@ const accountDeletePushTarget = async ({targetId,parseOutput = true, overrideFor
|
|
|
1446
1407
|
|
|
1447
1408
|
if (parseOutput) {
|
|
1448
1409
|
parse(response)
|
|
1449
|
-
success()
|
|
1450
1410
|
}
|
|
1451
1411
|
|
|
1452
1412
|
return response;
|
|
@@ -1489,7 +1449,6 @@ const accountCreateEmailToken = async ({userId,email,phrase,parseOutput = true,
|
|
|
1489
1449
|
|
|
1490
1450
|
if (parseOutput) {
|
|
1491
1451
|
parse(response)
|
|
1492
|
-
success()
|
|
1493
1452
|
}
|
|
1494
1453
|
|
|
1495
1454
|
return response;
|
|
@@ -1536,7 +1495,6 @@ const accountCreateMagicURLToken = async ({userId,email,url,phrase,parseOutput =
|
|
|
1536
1495
|
|
|
1537
1496
|
if (parseOutput) {
|
|
1538
1497
|
parse(response)
|
|
1539
|
-
success()
|
|
1540
1498
|
}
|
|
1541
1499
|
|
|
1542
1500
|
return response;
|
|
@@ -1580,7 +1538,6 @@ const accountCreateOAuth2Token = async ({provider,success,failure,scopes,parseOu
|
|
|
1580
1538
|
|
|
1581
1539
|
if (parseOutput) {
|
|
1582
1540
|
parse(response)
|
|
1583
|
-
success()
|
|
1584
1541
|
}
|
|
1585
1542
|
|
|
1586
1543
|
return response;
|
|
@@ -1619,7 +1576,6 @@ const accountCreatePhoneToken = async ({userId,phone,parseOutput = true, overrid
|
|
|
1619
1576
|
|
|
1620
1577
|
if (parseOutput) {
|
|
1621
1578
|
parse(response)
|
|
1622
|
-
success()
|
|
1623
1579
|
}
|
|
1624
1580
|
|
|
1625
1581
|
return response;
|
|
@@ -1654,7 +1610,6 @@ const accountCreateVerification = async ({url,parseOutput = true, overrideForCli
|
|
|
1654
1610
|
|
|
1655
1611
|
if (parseOutput) {
|
|
1656
1612
|
parse(response)
|
|
1657
|
-
success()
|
|
1658
1613
|
}
|
|
1659
1614
|
|
|
1660
1615
|
return response;
|
|
@@ -1693,7 +1648,6 @@ const accountUpdateVerification = async ({userId,secret,parseOutput = true, over
|
|
|
1693
1648
|
|
|
1694
1649
|
if (parseOutput) {
|
|
1695
1650
|
parse(response)
|
|
1696
|
-
success()
|
|
1697
1651
|
}
|
|
1698
1652
|
|
|
1699
1653
|
return response;
|
|
@@ -1724,7 +1678,6 @@ const accountCreatePhoneVerification = async ({parseOutput = true, overrideForCl
|
|
|
1724
1678
|
|
|
1725
1679
|
if (parseOutput) {
|
|
1726
1680
|
parse(response)
|
|
1727
|
-
success()
|
|
1728
1681
|
}
|
|
1729
1682
|
|
|
1730
1683
|
return response;
|
|
@@ -1763,7 +1716,6 @@ const accountUpdatePhoneVerification = async ({userId,secret,parseOutput = true,
|
|
|
1763
1716
|
|
|
1764
1717
|
if (parseOutput) {
|
|
1765
1718
|
parse(response)
|
|
1766
|
-
success()
|
|
1767
1719
|
}
|
|
1768
1720
|
|
|
1769
1721
|
return response;
|
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const assistant = new Command("assistant").description(commandDescriptions['assistant']).configureHelp({
|
|
38
|
+
const assistant = new Command("assistant").description(commandDescriptions['assistant'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -67,7 +67,6 @@ const assistantChat = async ({prompt,parseOutput = true, overrideForCli = false,
|
|
|
67
67
|
|
|
68
68
|
if (parseOutput) {
|
|
69
69
|
parse(response)
|
|
70
|
-
success()
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
return response;
|
package/lib/commands/avatars.js
CHANGED
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const avatars = new Command("avatars").description(commandDescriptions['avatars']).configureHelp({
|
|
38
|
+
const avatars = new Command("avatars").description(commandDescriptions['avatars'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -88,7 +88,6 @@ const avatarsGetBrowser = async ({code,width,height,quality,parseOutput = true,
|
|
|
88
88
|
fs.writeFileSync(destination, response);
|
|
89
89
|
if (parseOutput) {
|
|
90
90
|
parse(response)
|
|
91
|
-
success()
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
return response;
|
|
@@ -144,7 +143,6 @@ const avatarsGetCreditCard = async ({code,width,height,quality,parseOutput = tru
|
|
|
144
143
|
fs.writeFileSync(destination, response);
|
|
145
144
|
if (parseOutput) {
|
|
146
145
|
parse(response)
|
|
147
|
-
success()
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
return response;
|
|
@@ -191,7 +189,6 @@ const avatarsGetFavicon = async ({url,parseOutput = true, overrideForCli = false
|
|
|
191
189
|
fs.writeFileSync(destination, response);
|
|
192
190
|
if (parseOutput) {
|
|
193
191
|
parse(response)
|
|
194
|
-
success()
|
|
195
192
|
}
|
|
196
193
|
|
|
197
194
|
return response;
|
|
@@ -247,7 +244,6 @@ const avatarsGetFlag = async ({code,width,height,quality,parseOutput = true, ove
|
|
|
247
244
|
fs.writeFileSync(destination, response);
|
|
248
245
|
if (parseOutput) {
|
|
249
246
|
parse(response)
|
|
250
|
-
success()
|
|
251
247
|
}
|
|
252
248
|
|
|
253
249
|
return response;
|
|
@@ -302,7 +298,6 @@ const avatarsGetImage = async ({url,width,height,parseOutput = true, overrideFor
|
|
|
302
298
|
fs.writeFileSync(destination, response);
|
|
303
299
|
if (parseOutput) {
|
|
304
300
|
parse(response)
|
|
305
|
-
success()
|
|
306
301
|
}
|
|
307
302
|
|
|
308
303
|
return response;
|
|
@@ -361,7 +356,6 @@ const avatarsGetInitials = async ({name,width,height,background,parseOutput = tr
|
|
|
361
356
|
fs.writeFileSync(destination, response);
|
|
362
357
|
if (parseOutput) {
|
|
363
358
|
parse(response)
|
|
364
|
-
success()
|
|
365
359
|
}
|
|
366
360
|
|
|
367
361
|
return response;
|
|
@@ -420,7 +414,6 @@ const avatarsGetQR = async ({text,size,margin,download,parseOutput = true, overr
|
|
|
420
414
|
fs.writeFileSync(destination, response);
|
|
421
415
|
if (parseOutput) {
|
|
422
416
|
parse(response)
|
|
423
|
-
success()
|
|
424
417
|
}
|
|
425
418
|
|
|
426
419
|
return response;
|
package/lib/commands/console.js
CHANGED
|
@@ -35,7 +35,7 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const console = new Command("console").description(commandDescriptions['console']).configureHelp({
|
|
38
|
+
const console = new Command("console").description(commandDescriptions['console'] ?? '').configureHelp({
|
|
39
39
|
helpWidth: process.stdout.columns || 80
|
|
40
40
|
})
|
|
41
41
|
|
|
@@ -63,7 +63,6 @@ const consoleVariables = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
63
63
|
|
|
64
64
|
if (parseOutput) {
|
|
65
65
|
parse(response)
|
|
66
|
-
success()
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
return response;
|