@routr/ctl 2.0.31 → 2.1.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
@@ -19,7 +19,7 @@ $ npm install -g @routr/ctl
19
19
  $ rctl COMMAND
20
20
  running command...
21
21
  $ rctl (--version)
22
- @routr/ctl/2.0.31 linux-x64 node-v18.16.0
22
+ @routr/ctl/2.1.0 linux-x64 node-v18.16.0
23
23
  $ rctl --help [COMMAND]
24
24
  USAGE
25
25
  $ rctl COMMAND
@@ -80,10 +80,11 @@ Creates a new ACL
80
80
 
81
81
  ```
82
82
  USAGE
83
- $ rctl acl create [-i] [-e <value>]
83
+ $ rctl acl create [-i] [-c <value>] [-e <value>]
84
84
 
85
85
  FLAGS
86
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
86
+ -c, --cacert=<value> path to the CA certificate to verify the server
87
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
87
88
  -i, --insecure allow insecure connections to the routr server
88
89
 
89
90
  DESCRIPTION
@@ -100,10 +101,11 @@ Deletes an Access Control List
100
101
 
101
102
  ```
102
103
  USAGE
103
- $ rctl acl delete [REF] [-i] [-e <value>]
104
+ $ rctl acl delete [REF] [-i] [-c <value>] [-e <value>]
104
105
 
105
106
  FLAGS
106
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
107
+ -c, --cacert=<value> path to the CA certificate to verify the server
108
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
107
109
  -i, --insecure allow insecure connections to the routr server
108
110
 
109
111
  DESCRIPTION
@@ -120,13 +122,14 @@ shows details of an ACL
120
122
 
121
123
  ```
122
124
  USAGE
123
- $ rctl acl describe [REF] [-i] [-e <value>]
125
+ $ rctl acl describe [REF] [-i] [-c <value>] [-e <value>]
124
126
 
125
127
  ARGUMENTS
126
128
  REF reference to the ACL
127
129
 
128
130
  FLAGS
129
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
131
+ -c, --cacert=<value> path to the CA certificate to verify the server
132
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
130
133
  -i, --insecure allow insecure connections to the routr server
131
134
 
132
135
  DESCRIPTION
@@ -139,13 +142,14 @@ Shows a list of paginated ACLs or a single ACL if a ref is provided
139
142
 
140
143
  ```
141
144
  USAGE
142
- $ rctl acl get [REF] [-i] [-e <value>] [-s <value>] [-x]
145
+ $ rctl acl get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
143
146
 
144
147
  ARGUMENTS
145
148
  REF optional reference to an ACL
146
149
 
147
150
  FLAGS
148
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
151
+ -c, --cacert=<value> path to the CA certificate to verify the server
152
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
149
153
  -i, --insecure allow insecure connections to the routr server
150
154
  -s, --size=<value> [default: 50] the number of items to return
151
155
  -x, --extended extended output format
@@ -165,13 +169,14 @@ Updates an existing ACL
165
169
 
166
170
  ```
167
171
  USAGE
168
- $ rctl acl update [REF] [-i] [-e <value>]
172
+ $ rctl acl update [REF] [-i] [-c <value>] [-e <value>]
169
173
 
170
174
  ARGUMENTS
171
175
  REF reference to an ACL
172
176
 
173
177
  FLAGS
174
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
178
+ -c, --cacert=<value> path to the CA certificate to verify the server
179
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
175
180
  -i, --insecure allow insecure connections to the routr server
176
181
 
177
182
  DESCRIPTION
@@ -188,10 +193,11 @@ Creates a new Agent
188
193
 
189
194
  ```
190
195
  USAGE
191
- $ rctl agents create [-i] [-e <value>]
196
+ $ rctl agents create [-i] [-c <value>] [-e <value>]
192
197
 
193
198
  FLAGS
194
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
199
+ -c, --cacert=<value> path to the CA certificate to verify the server
200
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
195
201
  -i, --insecure allow insecure connections to the routr server
196
202
 
197
203
  DESCRIPTION
@@ -208,10 +214,11 @@ Deletes an Agent
208
214
 
209
215
  ```
210
216
  USAGE
211
- $ rctl agents delete [REF] [-i] [-e <value>]
217
+ $ rctl agents delete [REF] [-i] [-c <value>] [-e <value>]
212
218
 
213
219
  FLAGS
214
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
220
+ -c, --cacert=<value> path to the CA certificate to verify the server
221
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
215
222
  -i, --insecure allow insecure connections to the routr server
216
223
 
217
224
  DESCRIPTION
@@ -228,13 +235,14 @@ shows details of an Agent
228
235
 
229
236
  ```
230
237
  USAGE
231
- $ rctl agents describe [REF] [-i] [-e <value>]
238
+ $ rctl agents describe [REF] [-i] [-c <value>] [-e <value>]
232
239
 
233
240
  ARGUMENTS
234
241
  REF reference to the Agent
235
242
 
236
243
  FLAGS
237
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
244
+ -c, --cacert=<value> path to the CA certificate to verify the server
245
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
238
246
  -i, --insecure allow insecure connections to the routr server
239
247
 
240
248
  DESCRIPTION
@@ -247,13 +255,14 @@ Shows a list of paginated Agents or a single Agent if ref is provided
247
255
 
248
256
  ```
249
257
  USAGE
250
- $ rctl agents get [REF] [-i] [-e <value>] [-s <value>] [-x]
258
+ $ rctl agents get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
251
259
 
252
260
  ARGUMENTS
253
261
  REF Optional Agents reference
254
262
 
255
263
  FLAGS
256
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
264
+ -c, --cacert=<value> path to the CA certificate to verify the server
265
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
257
266
  -i, --insecure allow insecure connections to the routr server
258
267
  -s, --size=<value> [default: 50] The number of items to return
259
268
  -x, --extended extended output format
@@ -273,13 +282,14 @@ Updates an existing Agent
273
282
 
274
283
  ```
275
284
  USAGE
276
- $ rctl agents update [REF] [-i] [-e <value>]
285
+ $ rctl agents update [REF] [-i] [-c <value>] [-e <value>]
277
286
 
278
287
  ARGUMENTS
279
288
  REF reference to an existing Agent
280
289
 
281
290
  FLAGS
282
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
291
+ -c, --cacert=<value> path to the CA certificate to verify the server
292
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
283
293
  -i, --insecure allow insecure connections to the routr server
284
294
 
285
295
  DESCRIPTION
@@ -325,10 +335,11 @@ Creates a new set of Credentials
325
335
 
326
336
  ```
327
337
  USAGE
328
- $ rctl credentials create [-i] [-e <value>]
338
+ $ rctl credentials create [-i] [-c <value>] [-e <value>]
329
339
 
330
340
  FLAGS
331
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
341
+ -c, --cacert=<value> path to the CA certificate to verify the server
342
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
332
343
  -i, --insecure allow insecure connections to the routr server
333
344
 
334
345
  DESCRIPTION
@@ -345,10 +356,11 @@ Deletes a set of Credentials
345
356
 
346
357
  ```
347
358
  USAGE
348
- $ rctl credentials delete [REF] [-i] [-e <value>]
359
+ $ rctl credentials delete [REF] [-i] [-c <value>] [-e <value>]
349
360
 
350
361
  FLAGS
351
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
362
+ -c, --cacert=<value> path to the CA certificate to verify the server
363
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
352
364
  -i, --insecure allow insecure connections to the routr server
353
365
 
354
366
  DESCRIPTION
@@ -365,13 +377,14 @@ shows details for a set of Credentials
365
377
 
366
378
  ```
367
379
  USAGE
368
- $ rctl credentials describe [REF] [-i] [-e <value>]
380
+ $ rctl credentials describe [REF] [-i] [-c <value>] [-e <value>]
369
381
 
370
382
  ARGUMENTS
371
383
  REF reference to the set of Credentials
372
384
 
373
385
  FLAGS
374
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
386
+ -c, --cacert=<value> path to the CA certificate to verify the server
387
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
375
388
  -i, --insecure allow insecure connections to the routr server
376
389
 
377
390
  DESCRIPTION
@@ -384,13 +397,14 @@ Shows a list of paginated Credentials or a single set if ref is provided
384
397
 
385
398
  ```
386
399
  USAGE
387
- $ rctl credentials get [REF] [-i] [-e <value>] [-s <value>] [-x]
400
+ $ rctl credentials get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
388
401
 
389
402
  ARGUMENTS
390
403
  REF optional reference to a set of Credentials
391
404
 
392
405
  FLAGS
393
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
406
+ -c, --cacert=<value> path to the CA certificate to verify the server
407
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
394
408
  -i, --insecure allow insecure connections to the routr server
395
409
  -s, --size=<value> [default: 50] the number of items to return
396
410
  -x, --extended extended output format
@@ -410,13 +424,14 @@ Updates an existing set of Credentials
410
424
 
411
425
  ```
412
426
  USAGE
413
- $ rctl credentials update [REF] [-i] [-e <value>]
427
+ $ rctl credentials update [REF] [-i] [-c <value>] [-e <value>]
414
428
 
415
429
  ARGUMENTS
416
430
  REF reference to an existing set of Credentials
417
431
 
418
432
  FLAGS
419
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
433
+ -c, --cacert=<value> path to the CA certificate to verify the server
434
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
420
435
  -i, --insecure allow insecure connections to the routr server
421
436
 
422
437
  DESCRIPTION
@@ -433,10 +448,11 @@ Creates a new set Domain
433
448
 
434
449
  ```
435
450
  USAGE
436
- $ rctl domains create [-i] [-e <value>]
451
+ $ rctl domains create [-i] [-c <value>] [-e <value>]
437
452
 
438
453
  FLAGS
439
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
454
+ -c, --cacert=<value> path to the CA certificate to verify the server
455
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
440
456
  -i, --insecure allow insecure connections to the routr server
441
457
 
442
458
  DESCRIPTION
@@ -453,10 +469,11 @@ Deletes a Domain
453
469
 
454
470
  ```
455
471
  USAGE
456
- $ rctl domains delete [REF] [-i] [-e <value>]
472
+ $ rctl domains delete [REF] [-i] [-c <value>] [-e <value>]
457
473
 
458
474
  FLAGS
459
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
475
+ -c, --cacert=<value> path to the CA certificate to verify the server
476
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
460
477
  -i, --insecure allow insecure connections to the routr server
461
478
 
462
479
  DESCRIPTION
@@ -473,13 +490,14 @@ show details of a Domain
473
490
 
474
491
  ```
475
492
  USAGE
476
- $ rctl domains describe [REF] [-i] [-e <value>]
493
+ $ rctl domains describe [REF] [-i] [-c <value>] [-e <value>]
477
494
 
478
495
  ARGUMENTS
479
496
  REF reference to the Domain
480
497
 
481
498
  FLAGS
482
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
499
+ -c, --cacert=<value> path to the CA certificate to verify the server
500
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
483
501
  -i, --insecure allow insecure connections to the routr server
484
502
 
485
503
  DESCRIPTION
@@ -492,13 +510,14 @@ Shows a list of paginated Domains or a single Domain if ref is provided
492
510
 
493
511
  ```
494
512
  USAGE
495
- $ rctl domains get [REF] [-i] [-e <value>] [-s <value>] [-x]
513
+ $ rctl domains get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
496
514
 
497
515
  ARGUMENTS
498
516
  REF optional reference to a Domain
499
517
 
500
518
  FLAGS
501
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
519
+ -c, --cacert=<value> path to the CA certificate to verify the server
520
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
502
521
  -i, --insecure allow insecure connections to the routr server
503
522
  -s, --size=<value> [default: 50] the number of items to return
504
523
  -x, --extended extended output format
@@ -518,13 +537,14 @@ Updates an existing Domain
518
537
 
519
538
  ```
520
539
  USAGE
521
- $ rctl domains update [REF] [-i] [-e <value>]
540
+ $ rctl domains update [REF] [-i] [-c <value>] [-e <value>]
522
541
 
523
542
  ARGUMENTS
524
543
  REF reference to an existing Domain
525
544
 
526
545
  FLAGS
527
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
546
+ -c, --cacert=<value> path to the CA certificate to verify the server
547
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
528
548
  -i, --insecure allow insecure connections to the routr server
529
549
 
530
550
  DESCRIPTION
@@ -541,10 +561,11 @@ Creates a new Number
541
561
 
542
562
  ```
543
563
  USAGE
544
- $ rctl numbers create [-i] [-e <value>]
564
+ $ rctl numbers create [-i] [-c <value>] [-e <value>]
545
565
 
546
566
  FLAGS
547
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
567
+ -c, --cacert=<value> path to the CA certificate to verify the server
568
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
548
569
  -i, --insecure allow insecure connections to the routr server
549
570
 
550
571
  DESCRIPTION
@@ -561,10 +582,11 @@ Deletes a Number
561
582
 
562
583
  ```
563
584
  USAGE
564
- $ rctl numbers delete [REF] [-i] [-e <value>]
585
+ $ rctl numbers delete [REF] [-i] [-c <value>] [-e <value>]
565
586
 
566
587
  FLAGS
567
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
588
+ -c, --cacert=<value> path to the CA certificate to verify the server
589
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
568
590
  -i, --insecure allow insecure connections to the routr server
569
591
 
570
592
  DESCRIPTION
@@ -581,13 +603,14 @@ shows details for a Number
581
603
 
582
604
  ```
583
605
  USAGE
584
- $ rctl numbers describe [REF] [-i] [-e <value>]
606
+ $ rctl numbers describe [REF] [-i] [-c <value>] [-e <value>]
585
607
 
586
608
  ARGUMENTS
587
609
  REF reference to the Number
588
610
 
589
611
  FLAGS
590
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
612
+ -c, --cacert=<value> path to the CA certificate to verify the server
613
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
591
614
  -i, --insecure allow insecure connections to the routr server
592
615
 
593
616
  DESCRIPTION
@@ -600,13 +623,14 @@ Shows a list of paginated Numbers or a single Number if ref is provided
600
623
 
601
624
  ```
602
625
  USAGE
603
- $ rctl numbers get [REF] [-i] [-e <value>] [-s <value>] [-x]
626
+ $ rctl numbers get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
604
627
 
605
628
  ARGUMENTS
606
629
  REF optional reference to a Number
607
630
 
608
631
  FLAGS
609
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
632
+ -c, --cacert=<value> path to the CA certificate to verify the server
633
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
610
634
  -i, --insecure allow insecure connections to the routr server
611
635
  -s, --size=<value> [default: 50] the number of items to return
612
636
  -x, --extended extended output format
@@ -626,13 +650,14 @@ Updates an existing set of Credentials
626
650
 
627
651
  ```
628
652
  USAGE
629
- $ rctl numbers update [REF] [-i] [-e <value>]
653
+ $ rctl numbers update [REF] [-i] [-c <value>] [-e <value>]
630
654
 
631
655
  ARGUMENTS
632
656
  REF reference to an existing Number
633
657
 
634
658
  FLAGS
635
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
659
+ -c, --cacert=<value> path to the CA certificate to verify the server
660
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
636
661
  -i, --insecure allow insecure connections to the routr server
637
662
 
638
663
  DESCRIPTION
@@ -649,10 +674,11 @@ Creates a new Peer
649
674
 
650
675
  ```
651
676
  USAGE
652
- $ rctl peers create [-i] [-e <value>]
677
+ $ rctl peers create [-i] [-c <value>] [-e <value>]
653
678
 
654
679
  FLAGS
655
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
680
+ -c, --cacert=<value> path to the CA certificate to verify the server
681
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
656
682
  -i, --insecure allow insecure connections to the routr server
657
683
 
658
684
  DESCRIPTION
@@ -669,10 +695,11 @@ Deletes a Peer
669
695
 
670
696
  ```
671
697
  USAGE
672
- $ rctl peers delete [REF] [-i] [-e <value>]
698
+ $ rctl peers delete [REF] [-i] [-c <value>] [-e <value>]
673
699
 
674
700
  FLAGS
675
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
701
+ -c, --cacert=<value> path to the CA certificate to verify the server
702
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
676
703
  -i, --insecure allow insecure connections to the routr server
677
704
 
678
705
  DESCRIPTION
@@ -689,13 +716,14 @@ shows details for a Peer
689
716
 
690
717
  ```
691
718
  USAGE
692
- $ rctl peers describe [REF] [-i] [-e <value>]
719
+ $ rctl peers describe [REF] [-i] [-c <value>] [-e <value>]
693
720
 
694
721
  ARGUMENTS
695
722
  REF reference to the Peer
696
723
 
697
724
  FLAGS
698
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
725
+ -c, --cacert=<value> path to the CA certificate to verify the server
726
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
699
727
  -i, --insecure allow insecure connections to the routr server
700
728
 
701
729
  DESCRIPTION
@@ -708,13 +736,14 @@ Shows a list of paginated Peers or a single Peer if ref is provided
708
736
 
709
737
  ```
710
738
  USAGE
711
- $ rctl peers get [REF] [-i] [-e <value>] [-s <value>] [-x]
739
+ $ rctl peers get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
712
740
 
713
741
  ARGUMENTS
714
742
  REF optional reference to a Peer
715
743
 
716
744
  FLAGS
717
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
745
+ -c, --cacert=<value> path to the CA certificate to verify the server
746
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
718
747
  -i, --insecure allow insecure connections to the routr server
719
748
  -s, --size=<value> [default: 50] the number of items to return
720
749
  -x, --extended extended output format
@@ -734,13 +763,14 @@ Updates an existing Peer
734
763
 
735
764
  ```
736
765
  USAGE
737
- $ rctl peers update [REF] [-i] [-e <value>]
766
+ $ rctl peers update [REF] [-i] [-c <value>] [-e <value>]
738
767
 
739
768
  ARGUMENTS
740
769
  REF reference to an existing Peer
741
770
 
742
771
  FLAGS
743
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
772
+ -c, --cacert=<value> path to the CA certificate to verify the server
773
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
744
774
  -i, --insecure allow insecure connections to the routr server
745
775
 
746
776
  DESCRIPTION
@@ -990,10 +1020,11 @@ Creates a new Trunk
990
1020
 
991
1021
  ```
992
1022
  USAGE
993
- $ rctl trunks create [-i] [-e <value>]
1023
+ $ rctl trunks create [-i] [-c <value>] [-e <value>]
994
1024
 
995
1025
  FLAGS
996
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
1026
+ -c, --cacert=<value> path to the CA certificate to verify the server
1027
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
997
1028
  -i, --insecure allow insecure connections to the routr server
998
1029
 
999
1030
  DESCRIPTION
@@ -1010,10 +1041,11 @@ Deletes a Trunk
1010
1041
 
1011
1042
  ```
1012
1043
  USAGE
1013
- $ rctl trunks delete [REF] [-i] [-e <value>]
1044
+ $ rctl trunks delete [REF] [-i] [-c <value>] [-e <value>]
1014
1045
 
1015
1046
  FLAGS
1016
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
1047
+ -c, --cacert=<value> path to the CA certificate to verify the server
1048
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
1017
1049
  -i, --insecure allow insecure connections to the routr server
1018
1050
 
1019
1051
  DESCRIPTION
@@ -1030,13 +1062,14 @@ shows details for a Trunk
1030
1062
 
1031
1063
  ```
1032
1064
  USAGE
1033
- $ rctl trunks describe [REF] [-i] [-e <value>]
1065
+ $ rctl trunks describe [REF] [-i] [-c <value>] [-e <value>]
1034
1066
 
1035
1067
  ARGUMENTS
1036
1068
  REF reference to the Trunk
1037
1069
 
1038
1070
  FLAGS
1039
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
1071
+ -c, --cacert=<value> path to the CA certificate to verify the server
1072
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
1040
1073
  -i, --insecure allow insecure connections to the routr server
1041
1074
 
1042
1075
  DESCRIPTION
@@ -1049,13 +1082,14 @@ Shows a list of paginated Trunks or a single Trunk if ref is provided
1049
1082
 
1050
1083
  ```
1051
1084
  USAGE
1052
- $ rctl trunks get [REF] [-i] [-e <value>] [-s <value>] [-x]
1085
+ $ rctl trunks get [REF] [-i] [-c <value>] [-e <value>] [-s <value>] [-x]
1053
1086
 
1054
1087
  ARGUMENTS
1055
1088
  REF optional reference to a Trunk
1056
1089
 
1057
1090
  FLAGS
1058
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
1091
+ -c, --cacert=<value> path to the CA certificate to verify the server
1092
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
1059
1093
  -i, --insecure allow insecure connections to the routr server
1060
1094
  -s, --size=<value> [default: 50] the number of items to return
1061
1095
  -x, --extended extended output format
@@ -1075,13 +1109,14 @@ Updates an existing Trunk
1075
1109
 
1076
1110
  ```
1077
1111
  USAGE
1078
- $ rctl trunks update [REF] [-i] [-e <value>]
1112
+ $ rctl trunks update [REF] [-i] [-c <value>] [-e <value>]
1079
1113
 
1080
1114
  ARGUMENTS
1081
1115
  REF reference to an existing Trunk
1082
1116
 
1083
1117
  FLAGS
1084
- -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
1118
+ -c, --cacert=<value> path to the CA certificate to verify the server
1119
+ -e, --endpoint=<value> [default: localhost:51908] endpoint to connect to the routr server
1085
1120
  -i, --insecure allow insecure connections to the routr server
1086
1121
 
1087
1122
  DESCRIPTION
package/dist/base.d.ts CHANGED
@@ -2,6 +2,7 @@ import { Command } from "@oclif/core";
2
2
  export declare abstract class BaseCommand extends Command {
3
3
  static globalFlags: {
4
4
  insecure: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
5
+ cacert: import("@oclif/core/lib/interfaces").OptionFlag<string>;
5
6
  endpoint: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
7
  };
7
8
  }
package/dist/base.js CHANGED
@@ -30,9 +30,13 @@ BaseCommand.globalFlags = {
30
30
  description: "allow insecure connections to the routr server",
31
31
  default: false
32
32
  }),
33
+ cacert: core_1.Flags.string({
34
+ char: "c",
35
+ description: "path to the CA certificate to verify the server"
36
+ }),
33
37
  endpoint: core_1.Flags.string({
34
38
  char: "e",
35
39
  description: "endpoint to connect to the routr server",
36
- default: "localhost:51907"
40
+ default: "localhost:51908"
37
41
  })
38
42
  };
@@ -58,7 +58,7 @@ const inquirer_1 = __importDefault(require("inquirer"));
58
58
  class CreateCommand extends base_1.BaseCommand {
59
59
  async run() {
60
60
  const { flags } = await this.parse(CreateCommand);
61
- const { endpoint, insecure } = flags;
61
+ const { endpoint, insecure, cacert } = flags;
62
62
  try {
63
63
  this.log("This utility will help you create a new ACL");
64
64
  this.log("Press ^C at any time to quit.");
@@ -96,7 +96,7 @@ class CreateCommand extends base_1.BaseCommand {
96
96
  }
97
97
  else {
98
98
  core_1.CliUx.ux.action.start(`Creating ACL ${answers.name}`);
99
- const api = new sdk_1.default.ACL({ endpoint, insecure });
99
+ const api = new sdk_1.default.ACL({ endpoint, insecure, cacert });
100
100
  const acl = await api.createACL(answers);
101
101
  await core_1.CliUx.ux.wait(1000);
102
102
  core_1.CliUx.ux.action.stop(acl.ref);
@@ -27,8 +27,8 @@ const sdk_1 = __importDefault(require("@routr/sdk"));
27
27
  class CreateCommand extends delete_1.default {
28
28
  async run() {
29
29
  const { flags } = await this.parse(CreateCommand);
30
- const { endpoint, insecure } = flags;
31
- await super.deleteResource(new sdk_1.default.ACL({ endpoint, insecure }), "deleteACL");
30
+ const { endpoint, insecure, cacert } = flags;
31
+ await super.deleteResource(new sdk_1.default.ACL({ endpoint, insecure, cacert }), "deleteACL");
32
32
  }
33
33
  }
34
34
  exports.default = CreateCommand;
@@ -30,8 +30,8 @@ const moment_1 = __importDefault(require("moment"));
30
30
  class DescribeCommand extends base_1.BaseCommand {
31
31
  async run() {
32
32
  const { args, flags } = await this.parse(DescribeCommand);
33
- const { endpoint, insecure } = flags;
34
- const api = new sdk_1.default.ACL({ endpoint, insecure });
33
+ const { endpoint, insecure, cacert } = flags;
34
+ const api = new sdk_1.default.ACL({ endpoint, insecure, cacert });
35
35
  try {
36
36
  const acl = await api.getACL(args.ref);
37
37
  const jsonObj = {
@@ -34,8 +34,8 @@ const inquirer_1 = __importDefault(require("inquirer"));
34
34
  class UpdateCommand extends base_1.BaseCommand {
35
35
  async run() {
36
36
  const { args, flags } = await this.parse(UpdateCommand);
37
- const { endpoint, insecure } = flags;
38
- const api = new sdk_1.default.ACL({ endpoint, insecure });
37
+ const { endpoint, insecure, cacert } = flags;
38
+ const api = new sdk_1.default.ACL({ endpoint, insecure, cacert });
39
39
  try {
40
40
  const aclFromDB = await api.getACL(args.ref);
41
41
  this.log("This utility will help you update an existing ACL.");
@@ -60,17 +60,22 @@ inquirer_1.default.registerPrompt("autocomplete", inquirer_autocomplete_prompt_1
60
60
  class CreateAgentCommand extends base_1.BaseCommand {
61
61
  async run() {
62
62
  const { flags } = await this.parse(CreateAgentCommand);
63
- const { endpoint, insecure } = flags;
63
+ const { endpoint, insecure, cacert } = flags;
64
64
  try {
65
65
  // TODO: Fix hardcoded pageSize
66
- const domains = await new sdk_1.default.Domains({ endpoint, insecure }).listDomains({
66
+ const domains = await new sdk_1.default.Domains({
67
+ endpoint,
68
+ insecure,
69
+ cacert
70
+ }).listDomains({
67
71
  pageSize: 25,
68
72
  pageToken: ""
69
73
  });
70
74
  // TODO: Fix hardcoded pageSize
71
75
  const credentials = await new sdk_1.default.Credentials({
72
76
  endpoint,
73
- insecure
77
+ insecure,
78
+ cacert
74
79
  }).listCredentials({
75
80
  pageSize: 25,
76
81
  pageToken: ""
@@ -148,7 +153,7 @@ class CreateAgentCommand extends base_1.BaseCommand {
148
153
  }
149
154
  else {
150
155
  core_1.CliUx.ux.action.start(`Creating Agent ${answers.name}`);
151
- const api = new sdk_1.default.Agents({ endpoint, insecure });
156
+ const api = new sdk_1.default.Agents({ endpoint, insecure, cacert });
152
157
  const agent = await api.createAgent(answers);
153
158
  await core_1.CliUx.ux.wait(1000);
154
159
  core_1.CliUx.ux.action.stop(agent.ref);