swaggerhub-cli 0.10.0 → 0.12.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
@@ -16,7 +16,7 @@ The SwaggerHub CLI enables teams to build automation and workflows around Swagge
16
16
  * [Contributing](#contributing)
17
17
  <!-- tocstop -->
18
18
  # Requirements
19
- Node.js 20.x or later.
19
+ Node.js 20.17 or later.
20
20
 
21
21
  # Installation
22
22
  ```sh-session
@@ -106,6 +106,7 @@ USAGE
106
106
  * [`swaggerhub api:delete OWNER/API_NAME/[VERSION]`](#swaggerhub-apidelete)
107
107
  * [`swaggerhub api:get OWNER/API_NAME/[VERSION]`](#swaggerhub-apiget)
108
108
  * [`swaggerhub api:publish OWNER/API_NAME/VERSION`](#swaggerhub-apipublish)
109
+ * [`swaggerhub api:rename OWNER/API_NAME API_NEW_NAME`](#swaggerhub-apirename)
109
110
  * [`swaggerhub api:setdefault OWNER/API_NAME/VERSION`](#swaggerhub-apisetdefault)
110
111
  * [`swaggerhub api:unpublish OWNER/API_NAME/VERSION`](#swaggerhub-apiunpublish)
111
112
  * [`swaggerhub api:update OWNER/API_NAME/[VERSION]`](#swaggerhub-apiupdate)
@@ -146,8 +147,8 @@ USAGE
146
147
  * [`swaggerhub project:get OWNER/PROJECT_NAME`](#swaggerhub-projectget)
147
148
  * [`swaggerhub project:list [OWNER]`](#swaggerhub-projectlist)
148
149
  * [`swaggerhub project:member:list OWNER/PROJECT_NAME`](#swaggerhub-projectmemberlist)
149
- * [`swaggerhub spectral:upload OWNER/RULESET_NAME directory`](#swaggerhub-spectralupload)
150
- * [`swaggerhub spectral:download OWNER/RULESET_NAME directory`](#swaggerhub-spectraldownload)
150
+ * [`swaggerhub spectral:download OWNER/RULESET_NAME DIRECTORY`](#swaggerhub-spectraldownload)
151
+ * [`swaggerhub spectral:upload OWNER/RULESET_NAME DIRECTORY`](#swaggerhub-spectralupload)
151
152
 
152
153
  ## `swaggerhub api:create`
153
154
 
@@ -188,7 +189,7 @@ EXAMPLES
188
189
  $ swaggerhub api:create organization/api/1.0.0 --published=publish --setdefault --file api.json
189
190
  ```
190
191
 
191
- _See code: [src/commands/api/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/create.js)_
192
+ _See code: [src/commands/api/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/create.js)_
192
193
 
193
194
  ## `swaggerhub api:delete`
194
195
 
@@ -217,7 +218,7 @@ EXAMPLES
217
218
  $ swaggerhub api:delete organization/api --force
218
219
  ```
219
220
 
220
- _See code: [src/commands/api/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/delete.js)_
221
+ _See code: [src/commands/api/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/delete.js)_
221
222
 
222
223
  ## `swaggerhub api:get`
223
224
 
@@ -247,7 +248,7 @@ EXAMPLES
247
248
  $ swaggerhub api:get organization/api/1.0.0 --json
248
249
  ```
249
250
 
250
- _See code: [src/commands/api/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/get.js)_
251
+ _See code: [src/commands/api/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/get.js)_
251
252
 
252
253
  ## `swaggerhub api:publish`
253
254
 
@@ -273,7 +274,31 @@ EXAMPLES
273
274
  $ swaggerhub api:publish organization/api/1.0.0 --force
274
275
  ```
275
276
 
276
- _See code: [src/commands/api/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/publish.js)_
277
+ _See code: [src/commands/api/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/publish.js)_
278
+
279
+ ## `swaggerhub api:rename`
280
+
281
+ rename an API
282
+
283
+ ```
284
+ USAGE
285
+ $ swaggerhub api:rename OWNER/API_NAME API_NEW_NAME [-h]
286
+
287
+ ARGUMENTS
288
+ OWNER/API_NAME API to be renamed
289
+ API_NEW_NAME New name for the API
290
+
291
+ FLAGS
292
+ -h, --help Show CLI help.
293
+
294
+ DESCRIPTION
295
+ rename an API
296
+
297
+ EXAMPLES
298
+ $ swaggerhub api:rename organization/apiOldName apiNewName
299
+ ```
300
+
301
+ _See code: [src/commands/api/rename.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/rename.js)_
277
302
 
278
303
  ## `swaggerhub api:setdefault`
279
304
 
@@ -296,7 +321,7 @@ EXAMPLES
296
321
  $ swaggerhub api:setdefault organization/api/2.0.0
297
322
  ```
298
323
 
299
- _See code: [src/commands/api/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/setdefault.js)_
324
+ _See code: [src/commands/api/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/setdefault.js)_
300
325
 
301
326
  ## `swaggerhub api:unpublish`
302
327
 
@@ -319,7 +344,7 @@ EXAMPLES
319
344
  $ swaggerhub api:unpublish organization/api/1.0.0
320
345
  ```
321
346
 
322
- _See code: [src/commands/api/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/unpublish.js)_
347
+ _See code: [src/commands/api/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/unpublish.js)_
323
348
 
324
349
  ## `swaggerhub api:update`
325
350
 
@@ -363,7 +388,7 @@ EXAMPLES
363
388
  $ swaggerhub api:update organization/api/1.0.0 --visibility=private
364
389
  ```
365
390
 
366
- _See code: [src/commands/api/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/update.js)_
391
+ _See code: [src/commands/api/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/update.js)_
367
392
 
368
393
  ## `swaggerhub api:validate`
369
394
 
@@ -397,7 +422,7 @@ EXAMPLES
397
422
  $ swaggerhub api:validate --fail-on-critical --json organization/api
398
423
  ```
399
424
 
400
- _See code: [src/commands/api/validate/index.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/validate/index.js)_
425
+ _See code: [src/commands/api/validate/index.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/validate/index.js)_
401
426
 
402
427
  ## `swaggerhub api:validate:download-rules`
403
428
 
@@ -428,7 +453,7 @@ EXAMPLES
428
453
  $ swaggerhub api:validate:download-rules myOrg --include-disabled-rules -s
429
454
  ```
430
455
 
431
- _See code: [src/commands/api/validate/download-rules.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/validate/download-rules.js)_
456
+ _See code: [src/commands/api/validate/download-rules.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/validate/download-rules.js)_
432
457
 
433
458
  ## `swaggerhub api:validate:local`
434
459
 
@@ -458,7 +483,7 @@ EXAMPLES
458
483
  $ swaggerhub api:validate:local --organization myOrg --file ./my-api/json --fail-on-critical --json
459
484
  ```
460
485
 
461
- _See code: [src/commands/api/validate/local.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/api/validate/local.js)_
486
+ _See code: [src/commands/api/validate/local.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/api/validate/local.js)_
462
487
 
463
488
  ## `swaggerhub configure`
464
489
 
@@ -481,7 +506,7 @@ DESCRIPTION
481
506
  settings.
482
507
  ```
483
508
 
484
- _See code: [src/commands/configure.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/configure.js)_
509
+ _See code: [src/commands/configure.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/configure.js)_
485
510
 
486
511
  ## `swaggerhub domain:create`
487
512
 
@@ -522,7 +547,7 @@ EXAMPLES
522
547
  $ swaggerhub domain:create organization/domain/1.0.0 --publish --setdefault --file domain.json
523
548
  ```
524
549
 
525
- _See code: [src/commands/domain/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/create.js)_
550
+ _See code: [src/commands/domain/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/create.js)_
526
551
 
527
552
  ## `swaggerhub domain:delete`
528
553
 
@@ -551,7 +576,7 @@ EXAMPLES
551
576
  $ swaggerhub domain:delete organization/domain --force
552
577
  ```
553
578
 
554
- _See code: [src/commands/domain/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/delete.js)_
579
+ _See code: [src/commands/domain/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/delete.js)_
555
580
 
556
581
  ## `swaggerhub domain:get`
557
582
 
@@ -580,7 +605,7 @@ EXAMPLES
580
605
  $ swaggerhub domain:get organization/domain/1.0.0 --json
581
606
  ```
582
607
 
583
- _See code: [src/commands/domain/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/get.js)_
608
+ _See code: [src/commands/domain/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/get.js)_
584
609
 
585
610
  ## `swaggerhub domain:publish`
586
611
 
@@ -603,7 +628,7 @@ EXAMPLES
603
628
  $ swaggerhub domain:publish organization/domain/1.0.0
604
629
  ```
605
630
 
606
- _See code: [src/commands/domain/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/publish.js)_
631
+ _See code: [src/commands/domain/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/publish.js)_
607
632
 
608
633
  ## `swaggerhub domain:setdefault`
609
634
 
@@ -626,7 +651,7 @@ EXAMPLES
626
651
  $ swaggerhub domain:setdefault organization/domain/2.0.0
627
652
  ```
628
653
 
629
- _See code: [src/commands/domain/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/setdefault.js)_
654
+ _See code: [src/commands/domain/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/setdefault.js)_
630
655
 
631
656
  ## `swaggerhub domain:unpublish`
632
657
 
@@ -649,7 +674,7 @@ EXAMPLES
649
674
  $ swaggerhub domain:unpublish organization/domain/1.0.0
650
675
  ```
651
676
 
652
- _See code: [src/commands/domain/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/unpublish.js)_
677
+ _See code: [src/commands/domain/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/unpublish.js)_
653
678
 
654
679
  ## `swaggerhub domain:update`
655
680
 
@@ -693,7 +718,7 @@ EXAMPLES
693
718
  $ swaggerhub domain:update organization/domain/1.0.0 --visibility=private
694
719
  ```
695
720
 
696
- _See code: [src/commands/domain/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/domain/update.js)_
721
+ _See code: [src/commands/domain/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/domain/update.js)_
697
722
 
698
723
  ## `swaggerhub help`
699
724
 
@@ -713,7 +738,7 @@ DESCRIPTION
713
738
  Display help for swaggerhub.
714
739
  ```
715
740
 
716
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.22/src/commands/help.ts)_
741
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.3.0/src/commands/help.ts)_
717
742
 
718
743
  ## `swaggerhub integration:create`
719
744
 
@@ -741,7 +766,7 @@ EXAMPLES
741
766
  $ swaggerhub integration:create organization/api/1.0.0 --file config.json
742
767
  ```
743
768
 
744
- _See code: [src/commands/integration/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/integration/create.js)_
769
+ _See code: [src/commands/integration/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/integration/create.js)_
745
770
 
746
771
  ## `swaggerhub integration:delete`
747
772
 
@@ -764,7 +789,7 @@ EXAMPLES
764
789
  $ swaggerhub integration:delete organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
765
790
  ```
766
791
 
767
- _See code: [src/commands/integration/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/integration/delete.js)_
792
+ _See code: [src/commands/integration/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/integration/delete.js)_
768
793
 
769
794
  ## `swaggerhub integration:execute`
770
795
 
@@ -787,7 +812,7 @@ EXAMPLES
787
812
  $ swaggerhub integration:execute organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
788
813
  ```
789
814
 
790
- _See code: [src/commands/integration/execute.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/integration/execute.js)_
815
+ _See code: [src/commands/integration/execute.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/integration/execute.js)_
791
816
 
792
817
  ## `swaggerhub integration:get`
793
818
 
@@ -810,7 +835,7 @@ EXAMPLES
810
835
  $ swaggerhub integration:get organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
811
836
  ```
812
837
 
813
- _See code: [src/commands/integration/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/integration/get.js)_
838
+ _See code: [src/commands/integration/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/integration/get.js)_
814
839
 
815
840
  ## `swaggerhub integration:list`
816
841
 
@@ -833,7 +858,7 @@ EXAMPLES
833
858
  $ swaggerhub integration:list organization/api/1.0.0
834
859
  ```
835
860
 
836
- _See code: [src/commands/integration/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/integration/list.js)_
861
+ _See code: [src/commands/integration/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/integration/list.js)_
837
862
 
838
863
  ## `swaggerhub integration:update`
839
864
 
@@ -857,7 +882,7 @@ EXAMPLES
857
882
  $ swaggerhub integration:update organization/api/1.0.0/503c2db6-448a-4678-abcd-0123456789abc --file config.json
858
883
  ```
859
884
 
860
- _See code: [src/commands/integration/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/integration/update.js)_
885
+ _See code: [src/commands/integration/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/integration/update.js)_
861
886
 
862
887
  ## `swaggerhub plugins`
863
888
 
@@ -880,7 +905,7 @@ EXAMPLES
880
905
  $ swaggerhub plugins
881
906
  ```
882
907
 
883
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/index.ts)_
908
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/index.ts)_
884
909
 
885
910
  ## `swaggerhub plugins:add`
886
911
 
@@ -954,7 +979,7 @@ EXAMPLES
954
979
  $ swaggerhub plugins:inspect myplugin
955
980
  ```
956
981
 
957
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/inspect.ts)_
982
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/inspect.ts)_
958
983
 
959
984
  ## `swaggerhub plugins:install`
960
985
 
@@ -1003,7 +1028,7 @@ EXAMPLES
1003
1028
  $ swaggerhub plugins:install someuser/someplugin
1004
1029
  ```
1005
1030
 
1006
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/install.ts)_
1031
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/install.ts)_
1007
1032
 
1008
1033
  ## `swaggerhub plugins:link`
1009
1034
 
@@ -1034,7 +1059,7 @@ EXAMPLES
1034
1059
  $ swaggerhub plugins:link myplugin
1035
1060
  ```
1036
1061
 
1037
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/link.ts)_
1062
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/link.ts)_
1038
1063
 
1039
1064
  ## `swaggerhub plugins:remove`
1040
1065
 
@@ -1075,7 +1100,7 @@ FLAGS
1075
1100
  --reinstall Reinstall all plugins after uninstalling.
1076
1101
  ```
1077
1102
 
1078
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/reset.ts)_
1103
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/reset.ts)_
1079
1104
 
1080
1105
  ## `swaggerhub plugins:uninstall`
1081
1106
 
@@ -1103,7 +1128,7 @@ EXAMPLES
1103
1128
  $ swaggerhub plugins:uninstall myplugin
1104
1129
  ```
1105
1130
 
1106
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/uninstall.ts)_
1131
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/uninstall.ts)_
1107
1132
 
1108
1133
  ## `swaggerhub plugins:unlink`
1109
1134
 
@@ -1147,7 +1172,7 @@ DESCRIPTION
1147
1172
  Update installed plugins.
1148
1173
  ```
1149
1174
 
1150
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/update.ts)_
1175
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.5.2/src/commands/plugins/update.ts)_
1151
1176
 
1152
1177
  ## `swaggerhub project:api:add`
1153
1178
 
@@ -1171,7 +1196,7 @@ EXAMPLES
1171
1196
  $ swaggerhub project:api:add organization/project_name my_api
1172
1197
  ```
1173
1198
 
1174
- _See code: [src/commands/project/api/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/api/add.js)_
1199
+ _See code: [src/commands/project/api/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/api/add.js)_
1175
1200
 
1176
1201
  ## `swaggerhub project:api:remove`
1177
1202
 
@@ -1195,7 +1220,7 @@ EXAMPLES
1195
1220
  $ swaggerhub project:api:remove organization/project_name my_api
1196
1221
  ```
1197
1222
 
1198
- _See code: [src/commands/project/api/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/api/remove.js)_
1223
+ _See code: [src/commands/project/api/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/api/remove.js)_
1199
1224
 
1200
1225
  ## `swaggerhub project:create`
1201
1226
 
@@ -1231,7 +1256,7 @@ EXAMPLES
1231
1256
  $ swaggerhub project:create organization/new_project_name -a "testapi1" -d "testdomain3" --description "description"
1232
1257
  ```
1233
1258
 
1234
- _See code: [src/commands/project/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/create.js)_
1259
+ _See code: [src/commands/project/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/create.js)_
1235
1260
 
1236
1261
  ## `swaggerhub project:delete`
1237
1262
 
@@ -1254,7 +1279,7 @@ EXAMPLES
1254
1279
  $ swaggerhub project:delete organization/project_name
1255
1280
  ```
1256
1281
 
1257
- _See code: [src/commands/project/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/delete.js)_
1282
+ _See code: [src/commands/project/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/delete.js)_
1258
1283
 
1259
1284
  ## `swaggerhub project:domain:add`
1260
1285
 
@@ -1278,7 +1303,7 @@ EXAMPLES
1278
1303
  $ swaggerhub project:domain:add organization/project_name my_domain
1279
1304
  ```
1280
1305
 
1281
- _See code: [src/commands/project/domain/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/domain/add.js)_
1306
+ _See code: [src/commands/project/domain/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/domain/add.js)_
1282
1307
 
1283
1308
  ## `swaggerhub project:domain:remove`
1284
1309
 
@@ -1302,7 +1327,7 @@ EXAMPLES
1302
1327
  $ swaggerhub project:domain:remove organization/project_name my_domain
1303
1328
  ```
1304
1329
 
1305
- _See code: [src/commands/project/domain/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/domain/remove.js)_
1330
+ _See code: [src/commands/project/domain/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/domain/remove.js)_
1306
1331
 
1307
1332
  ## `swaggerhub project:get`
1308
1333
 
@@ -1325,7 +1350,7 @@ EXAMPLES
1325
1350
  $ swaggerhub project:get organization/project_name
1326
1351
  ```
1327
1352
 
1328
- _See code: [src/commands/project/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/get.js)_
1353
+ _See code: [src/commands/project/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/get.js)_
1329
1354
 
1330
1355
  ## `swaggerhub project:list`
1331
1356
 
@@ -1350,7 +1375,7 @@ EXAMPLES
1350
1375
  $ swaggerhub project:list organization
1351
1376
  ```
1352
1377
 
1353
- _See code: [src/commands/project/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/list.js)_
1378
+ _See code: [src/commands/project/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/list.js)_
1354
1379
 
1355
1380
  ## `swaggerhub project:member:list`
1356
1381
 
@@ -1373,56 +1398,55 @@ EXAMPLES
1373
1398
  $ swaggerhub project:member:list organisation/project_name
1374
1399
  ```
1375
1400
 
1376
- _See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/member/list.js)_
1401
+ _See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/project/member/list.js)_
1377
1402
 
1378
- ## `swaggerhub spectral:upload`
1403
+ ## `swaggerhub spectral:download`
1379
1404
 
1380
- Create or update organization's Spectral ruleset
1405
+ Fetch organization's Spectral ruleset
1381
1406
 
1382
1407
  ```
1383
1408
  USAGE
1384
- $ swaggerhub spectral:upload OWNER/RULESET_NAME directory [-h]
1409
+ $ swaggerhub spectral:download OWNER/RULESET_NAME DIRECTORY [-h]
1385
1410
 
1386
1411
  ARGUMENTS
1387
- OWNER/RULESET_NAME The Spectral ruleset details for SwaggerHub organization
1388
- directory Relative path to directory with ruleset files
1412
+ OWNER/RULESET_NAME Organization's Spectral ruleset to create or update on SwaggerHub
1413
+ DIRECTORY Relative path to directory the ruleset files should be saved to
1389
1414
 
1390
1415
  FLAGS
1391
1416
  -h, --help Show CLI help.
1392
1417
 
1393
1418
  DESCRIPTION
1394
- Create or update organization's Spectral ruleset
1419
+ Fetch organization's Spectral ruleset
1395
1420
 
1396
1421
  EXAMPLES
1397
- $ swaggerhub spectral:upload my_organization/my_api_ruleset rules
1422
+ $ swaggerhub spectral:download my_organization/my_api_ruleset rules/
1398
1423
  ```
1399
1424
 
1400
- _See code: [src/commands/spectral/upload.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/spectral/upload.js)_
1425
+ _See code: [src/commands/spectral/download.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/spectral/download.js)_
1401
1426
 
1427
+ ## `swaggerhub spectral:upload`
1402
1428
 
1403
- ## `swaggerhub spectral:download`
1404
-
1405
- Fetch organization's Spectral ruleset
1429
+ Create or update organization's Spectral ruleset
1406
1430
 
1407
1431
  ```
1408
1432
  USAGE
1409
- $ swaggerhub spectral:download OWNER/RULESET_NAME directory [-h]
1433
+ $ swaggerhub spectral:upload OWNER/RULESET_NAME DIRECTORY [-h]
1410
1434
 
1411
1435
  ARGUMENTS
1412
- OWNER/RULESET_NAME The Spectral ruleset details for SwaggerHub organization
1413
- directory Relative path to directory the ruleset files should be saved to
1436
+ OWNER/RULESET_NAME Organization's Spectral ruleset to create or update on SwaggerHub
1437
+ DIRECTORY Relative path to directory with ruleset files
1414
1438
 
1415
1439
  FLAGS
1416
1440
  -h, --help Show CLI help.
1417
1441
 
1418
1442
  DESCRIPTION
1419
- Fetch organization's Spectral ruleset
1443
+ Create or update organization's Spectral ruleset
1420
1444
 
1421
1445
  EXAMPLES
1422
- $ swaggerhub spectral:download my_organization/my_api_ruleset rules
1446
+ $ swaggerhub spectral:upload my_organization/my_api_ruleset rules/
1423
1447
  ```
1424
1448
 
1425
- _See code: [src/commands/spectral/download.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/spectral/download.js)_
1449
+ _See code: [src/commands/spectral/upload.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.12.0/src/commands/spectral/upload.js)_
1426
1450
  <!-- commandsstop -->
1427
1451
 
1428
1452
  # Plugins
package/bin/run CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ // Suppress the deprecated punycode module warning
4
+ // https://nodejs.org/api/deprecations.html#deprecations_dep0040_the_punycode_module_is_deprecated
5
+ process.noDeprecation = true;
6
+
3
7
  require('@oclif/core').run()
4
8
  .then(require('@oclif/core/flush'))
5
9
  .catch(require('@oclif/core/handle'))