kourou 0.23.0 → 0.24.0
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
CHANGED
|
@@ -26,7 +26,7 @@ $ npm install -g kourou
|
|
|
26
26
|
$ kourou COMMAND
|
|
27
27
|
running command...
|
|
28
28
|
$ kourou (-v|--version|version)
|
|
29
|
-
kourou/0.
|
|
29
|
+
kourou/0.24.0 darwin-x64 node-v14.18.2
|
|
30
30
|
$ kourou --help [COMMAND]
|
|
31
31
|
USAGE
|
|
32
32
|
$ kourou COMMAND
|
|
@@ -156,7 +156,7 @@ All other arguments and options will be passed as-is to the `sdk:query` method.
|
|
|
156
156
|
* [`kourou instance:list`](#kourou-instancelist)
|
|
157
157
|
* [`kourou instance:logs`](#kourou-instancelogs)
|
|
158
158
|
* [`kourou instance:spawn`](#kourou-instancespawn)
|
|
159
|
-
* [`kourou paas:deploy ENVIRONMENT IMAGE`](#kourou-paasdeploy-environment-image)
|
|
159
|
+
* [`kourou paas:deploy ENVIRONMENT APPLICATIONID IMAGE`](#kourou-paasdeploy-environment-applicationid-image)
|
|
160
160
|
* [`kourou paas:init PROJECT`](#kourou-paasinit-project)
|
|
161
161
|
* [`kourou paas:login`](#kourou-paaslogin)
|
|
162
162
|
* [`kourou paas:logs ENVIRONMENT APPLICATION`](#kourou-paaslogs-environment-application)
|
|
@@ -198,6 +198,7 @@ OPTIONS
|
|
|
198
198
|
--port=port [default: 7512] Kuzzle server port
|
|
199
199
|
--protocol=protocol [default: ws] Kuzzle protocol (http or ws)
|
|
200
200
|
--ssl Use SSL to connect to Kuzzle
|
|
201
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
201
202
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
202
203
|
|
|
203
204
|
EXAMPLE
|
|
@@ -229,6 +230,7 @@ OPTIONS
|
|
|
229
230
|
--port=port [default: 7512] Kuzzle server port
|
|
230
231
|
--protocol=protocol [default: ws] Kuzzle protocol (http or ws)
|
|
231
232
|
--ssl Use SSL to connect to Kuzzle
|
|
233
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
232
234
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
233
235
|
```
|
|
234
236
|
|
|
@@ -255,6 +257,7 @@ OPTIONS
|
|
|
255
257
|
--port=port [default: 7512] Kuzzle server port
|
|
256
258
|
--protocol=protocol [default: ws] Kuzzle protocol (http or ws)
|
|
257
259
|
--ssl Use SSL to connect to Kuzzle
|
|
260
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
258
261
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
259
262
|
|
|
260
263
|
EXAMPLE
|
|
@@ -284,6 +287,7 @@ OPTIONS
|
|
|
284
287
|
--port=port [default: 7512] Kuzzle server port
|
|
285
288
|
--protocol=protocol [default: ws] Kuzzle protocol (http or ws)
|
|
286
289
|
--ssl Use SSL to connect to Kuzzle
|
|
290
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
287
291
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
288
292
|
```
|
|
289
293
|
|
|
@@ -303,8 +307,9 @@ OPTIONS
|
|
|
303
307
|
--forwardPort=forwardPort [default: 9222] Port of the forwarding server
|
|
304
308
|
--help show CLI help
|
|
305
309
|
--host=host [default: localhost] Kuzzle server host
|
|
310
|
+
--keepAuth Keep the user authenticated
|
|
306
311
|
|
|
307
|
-
--
|
|
312
|
+
--noAutoEnableDebugger True if Kourou should not enable and disable the Debugger automatically before and after
|
|
308
313
|
usage
|
|
309
314
|
|
|
310
315
|
--password=password Kuzzle user password
|
|
@@ -319,6 +324,8 @@ OPTIONS
|
|
|
319
324
|
|
|
320
325
|
--ssl Use SSL to connect to Kuzzle
|
|
321
326
|
|
|
327
|
+
--ttl=ttl [default: 1h] Kuzzle login TTL
|
|
328
|
+
|
|
322
329
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
323
330
|
```
|
|
324
331
|
|
|
@@ -402,6 +409,7 @@ OPTIONS
|
|
|
402
409
|
--port=port [default: 7512] Kuzzle server port
|
|
403
410
|
--protocol=protocol [default: ws] Kuzzle protocol (http or ws)
|
|
404
411
|
--ssl Use SSL to connect to Kuzzle
|
|
412
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
405
413
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
406
414
|
```
|
|
407
415
|
|
|
@@ -474,6 +482,9 @@ OPTIONS
|
|
|
474
482
|
--ssl
|
|
475
483
|
Use SSL to connect to Kuzzle
|
|
476
484
|
|
|
485
|
+
--ttl=ttl
|
|
486
|
+
[default: 90] Kuzzle login TTL (in seconds)
|
|
487
|
+
|
|
477
488
|
--username=username
|
|
478
489
|
[default: anonymous] Kuzzle username (local strategy)
|
|
479
490
|
|
|
@@ -508,6 +519,7 @@ OPTIONS
|
|
|
508
519
|
--port=port [default: 7512] Kuzzle server port
|
|
509
520
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
510
521
|
--ssl Use SSL to connect to Kuzzle
|
|
522
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
511
523
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
512
524
|
```
|
|
513
525
|
|
|
@@ -563,6 +575,7 @@ OPTIONS
|
|
|
563
575
|
--size=size Optional page size
|
|
564
576
|
--sort=sort [default: {}] Sort in JS or JSON format.
|
|
565
577
|
--ssl Use SSL to connect to Kuzzle
|
|
578
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
566
579
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
567
580
|
|
|
568
581
|
EXAMPLES
|
|
@@ -817,6 +830,7 @@ OPTIONS
|
|
|
817
830
|
--preserve-anonymous Preserve anonymous rights
|
|
818
831
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
819
832
|
--ssl Use SSL to connect to Kuzzle
|
|
833
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
820
834
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
821
835
|
```
|
|
822
836
|
|
|
@@ -857,6 +871,8 @@ OPTIONS
|
|
|
857
871
|
|
|
858
872
|
--ssl Use SSL to connect to Kuzzle
|
|
859
873
|
|
|
874
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
875
|
+
|
|
860
876
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
861
877
|
|
|
862
878
|
EXAMPLES
|
|
@@ -889,6 +905,7 @@ OPTIONS
|
|
|
889
905
|
--port=port [default: 7512] Kuzzle server port
|
|
890
906
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
891
907
|
--ssl Use SSL to connect to Kuzzle
|
|
908
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
892
909
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
893
910
|
|
|
894
911
|
EXAMPLES
|
|
@@ -955,17 +972,18 @@ OPTIONS
|
|
|
955
972
|
|
|
956
973
|
_See code: [src/commands/instance/spawn.ts](src/commands/instance/spawn.ts)_
|
|
957
974
|
|
|
958
|
-
## `kourou paas:deploy ENVIRONMENT IMAGE`
|
|
975
|
+
## `kourou paas:deploy ENVIRONMENT APPLICATIONID IMAGE`
|
|
959
976
|
|
|
960
977
|
Deploy a new version of the application in the PaaS
|
|
961
978
|
|
|
962
979
|
```
|
|
963
980
|
USAGE
|
|
964
|
-
$ kourou paas:deploy ENVIRONMENT IMAGE
|
|
981
|
+
$ kourou paas:deploy ENVIRONMENT APPLICATIONID IMAGE
|
|
965
982
|
|
|
966
983
|
ARGUMENTS
|
|
967
|
-
ENVIRONMENT
|
|
968
|
-
|
|
984
|
+
ENVIRONMENT Project environment name
|
|
985
|
+
APPLICATIONID Application Identifier
|
|
986
|
+
IMAGE Image name and hash as myimage:mytag
|
|
969
987
|
|
|
970
988
|
OPTIONS
|
|
971
989
|
--help show CLI help
|
|
@@ -1045,6 +1063,7 @@ OPTIONS
|
|
|
1045
1063
|
--port=port [default: 7512] Kuzzle server port
|
|
1046
1064
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1047
1065
|
--ssl Use SSL to connect to Kuzzle
|
|
1066
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1048
1067
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1049
1068
|
```
|
|
1050
1069
|
|
|
@@ -1070,6 +1089,7 @@ OPTIONS
|
|
|
1070
1089
|
--port=port [default: 7512] Kuzzle server port
|
|
1071
1090
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1072
1091
|
--ssl Use SSL to connect to Kuzzle
|
|
1092
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1073
1093
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1074
1094
|
```
|
|
1075
1095
|
|
|
@@ -1111,6 +1131,8 @@ OPTIONS
|
|
|
1111
1131
|
|
|
1112
1132
|
--ssl Use SSL to connect to Kuzzle
|
|
1113
1133
|
|
|
1134
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1135
|
+
|
|
1114
1136
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1115
1137
|
|
|
1116
1138
|
--users=users [default: all] Subscribe to users entering or leaving the room (all, in, out, none)
|
|
@@ -1150,6 +1172,7 @@ OPTIONS
|
|
|
1150
1172
|
--remove Remove matching keys
|
|
1151
1173
|
--size=size [default: 100] Page size
|
|
1152
1174
|
--ssl Use SSL to connect to Kuzzle
|
|
1175
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1153
1176
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1154
1177
|
|
|
1155
1178
|
EXAMPLES
|
|
@@ -1177,6 +1200,7 @@ OPTIONS
|
|
|
1177
1200
|
--port=port [default: 7512] Kuzzle server port
|
|
1178
1201
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1179
1202
|
--ssl Use SSL to connect to Kuzzle
|
|
1203
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1180
1204
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1181
1205
|
```
|
|
1182
1206
|
|
|
@@ -1203,6 +1227,7 @@ OPTIONS
|
|
|
1203
1227
|
--preserve-anonymous Preserve anonymous rights
|
|
1204
1228
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1205
1229
|
--ssl Use SSL to connect to Kuzzle
|
|
1230
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1206
1231
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1207
1232
|
```
|
|
1208
1233
|
|
|
@@ -1232,6 +1257,7 @@ OPTIONS
|
|
|
1232
1257
|
--print-raw Print only the script result to stdout
|
|
1233
1258
|
--protocol=protocol [default: ws] Kuzzle protocol (http or ws)
|
|
1234
1259
|
--ssl Use SSL to connect to Kuzzle
|
|
1260
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1235
1261
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1236
1262
|
|
|
1237
1263
|
DESCRIPTION
|
|
@@ -1305,6 +1331,8 @@ OPTIONS
|
|
|
1305
1331
|
|
|
1306
1332
|
--ssl Use SSL to connect to Kuzzle
|
|
1307
1333
|
|
|
1334
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1335
|
+
|
|
1308
1336
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1309
1337
|
|
|
1310
1338
|
DESCRIPTION
|
|
@@ -1387,6 +1415,7 @@ OPTIONS
|
|
|
1387
1415
|
--port=port [default: 7512] Kuzzle server port
|
|
1388
1416
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1389
1417
|
--ssl Use SSL to connect to Kuzzle
|
|
1418
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1390
1419
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1391
1420
|
|
|
1392
1421
|
DESCRIPTION
|
|
@@ -1435,6 +1464,7 @@ OPTIONS
|
|
|
1435
1464
|
--port=port [default: 7512] Kuzzle server port
|
|
1436
1465
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1437
1466
|
--ssl Use SSL to connect to Kuzzle
|
|
1467
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1438
1468
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1439
1469
|
```
|
|
1440
1470
|
|
|
@@ -1460,6 +1490,7 @@ OPTIONS
|
|
|
1460
1490
|
--port=port [default: 7512] Kuzzle server port
|
|
1461
1491
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1462
1492
|
--ssl Use SSL to connect to Kuzzle
|
|
1493
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1463
1494
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1464
1495
|
```
|
|
1465
1496
|
|
|
@@ -1485,6 +1516,7 @@ OPTIONS
|
|
|
1485
1516
|
--port=port [default: 7512] Kuzzle server port
|
|
1486
1517
|
--protocol=protocol [default: ws] Kuzzle protocol (http or websocket)
|
|
1487
1518
|
--ssl Use SSL to connect to Kuzzle
|
|
1519
|
+
--ttl=ttl [default: 90] Kuzzle login TTL (in seconds)
|
|
1488
1520
|
--username=username [default: anonymous] Kuzzle username (local strategy)
|
|
1489
1521
|
```
|
|
1490
1522
|
|
|
@@ -13,7 +13,9 @@ export default class DebugProxy extends Kommand {
|
|
|
13
13
|
'api-key': flags.IOptionFlag<string | undefined>;
|
|
14
14
|
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
15
15
|
forwardPort: import("@oclif/parser/lib/flags").IOptionFlag<number>;
|
|
16
|
-
|
|
16
|
+
ttl: flags.IOptionFlag<string>;
|
|
17
|
+
keepAuth: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
18
|
+
noAutoEnableDebugger: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
17
19
|
showDebuggerEvents: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
18
20
|
showDebuggerPayloads: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
19
21
|
};
|
|
@@ -160,9 +160,15 @@ DebugProxy.description = 'Create a Proxy Server that allows Chrome to debug Kuzz
|
|
|
160
160
|
DebugProxy.flags = Object.assign({ help: command_1.flags.help(), forwardPort: command_1.flags.integer({
|
|
161
161
|
description: 'Port of the forwarding server',
|
|
162
162
|
default: 9222
|
|
163
|
-
}),
|
|
163
|
+
}), ttl: command_1.flags.string({
|
|
164
|
+
description: 'Kuzzle login TTL',
|
|
165
|
+
default: '1h',
|
|
166
|
+
}), keepAuth: command_1.flags.boolean({
|
|
167
|
+
description: 'Keep the user authenticated',
|
|
168
|
+
default: false,
|
|
169
|
+
}), noAutoEnableDebugger: command_1.flags.boolean({
|
|
164
170
|
description: 'True if Kourou should not enable and disable the Debugger automatically before and after usage',
|
|
165
|
-
default:
|
|
171
|
+
default: false
|
|
166
172
|
}), showDebuggerEvents: command_1.flags.boolean({
|
|
167
173
|
description: 'Verbose mode to display events sent to the Chrome Debugger',
|
|
168
174
|
default: false,
|
|
@@ -19,7 +19,7 @@ class PaasDeploy extends PaasKommand_1.PaasKommand {
|
|
|
19
19
|
action: 'deploy',
|
|
20
20
|
environmentId: this.args.environment,
|
|
21
21
|
projectId: this.flags.project || this.getProject(),
|
|
22
|
-
applicationId:
|
|
22
|
+
applicationId: this.args.applicationId,
|
|
23
23
|
body: {
|
|
24
24
|
image: {
|
|
25
25
|
name: image,
|
|
@@ -61,6 +61,7 @@ PaasDeploy.flags = {
|
|
|
61
61
|
};
|
|
62
62
|
PaasDeploy.args = [
|
|
63
63
|
{ name: 'environment', description: 'Project environment name', required: true },
|
|
64
|
+
{ name: 'applicationId', description: 'Application Identifier', required: true },
|
|
64
65
|
{ name: 'image', description: 'Image name and hash as myimage:mytag', required: true },
|
|
65
66
|
];
|
|
66
67
|
exports.default = PaasDeploy;
|
package/lib/common.js
CHANGED
|
@@ -113,6 +113,7 @@ class Kommand extends command_1.Command {
|
|
|
113
113
|
this.logKo(JSON.stringify(error.reason));
|
|
114
114
|
}
|
|
115
115
|
err = true;
|
|
116
|
+
this.exitCode = 1;
|
|
116
117
|
}
|
|
117
118
|
finally {
|
|
118
119
|
if (kommand.id !== undefined) {
|
|
@@ -127,6 +128,7 @@ class Kommand extends command_1.Command {
|
|
|
127
128
|
]);
|
|
128
129
|
}
|
|
129
130
|
this.sdk.disconnect();
|
|
131
|
+
process.exit(this.exitCode);
|
|
130
132
|
}
|
|
131
133
|
return this.exitCode;
|
|
132
134
|
}
|
|
@@ -11,7 +11,7 @@ class PaasKommand extends common_1.Kommand {
|
|
|
11
11
|
super(...arguments);
|
|
12
12
|
this.host = process.env.KUZZLE_PAAS_HOST
|
|
13
13
|
? process.env.KUZZLE_PAAS_HOST
|
|
14
|
-
: '
|
|
14
|
+
: 'console.paas.kuzzle.io';
|
|
15
15
|
this.port = process.env.KUZZLE_PAAS_PORT
|
|
16
16
|
? parseInt(process.env.KUZZLE_PAAS_PORT)
|
|
17
17
|
: 443;
|