swaggerhub-cli 0.14.0 → 0.15.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 +41 -41
- package/bin/run +5 -4
- package/oclif.manifest.json +40 -40
- package/package.json +13 -11
- package/src/check-node-version.js +3 -2
- package/src/commands/api/clone.js +8 -7
- package/src/commands/api/create.js +8 -8
- package/src/commands/api/delete.js +6 -6
- package/src/commands/api/get.js +7 -7
- package/src/commands/api/publish.js +6 -6
- package/src/commands/api/rename.js +8 -10
- package/src/commands/api/setdefault.js +5 -5
- package/src/commands/api/unpublish.js +5 -5
- package/src/commands/api/update.js +8 -8
- package/src/commands/api/validate/download-rules.js +6 -6
- package/src/commands/api/validate/index.js +8 -8
- package/src/commands/api/validate/local.js +8 -8
- package/src/commands/configure.js +6 -6
- package/src/commands/domain/clone.js +8 -7
- package/src/commands/domain/create.js +8 -8
- package/src/commands/domain/delete.js +6 -6
- package/src/commands/domain/get.js +7 -7
- package/src/commands/domain/publish.js +5 -5
- package/src/commands/domain/rename.js +9 -8
- package/src/commands/domain/setdefault.js +5 -5
- package/src/commands/domain/unpublish.js +5 -5
- package/src/commands/domain/update.js +8 -8
- package/src/commands/integration/create.js +5 -5
- package/src/commands/integration/delete.js +5 -5
- package/src/commands/integration/execute.js +5 -5
- package/src/commands/integration/get.js +7 -7
- package/src/commands/integration/list.js +6 -6
- package/src/commands/integration/update.js +5 -5
- package/src/commands/project/api/add.js +5 -7
- package/src/commands/project/api/remove.js +7 -10
- package/src/commands/project/create.js +5 -9
- package/src/commands/project/delete.js +5 -5
- package/src/commands/project/domain/add.js +5 -7
- package/src/commands/project/domain/remove.js +7 -10
- package/src/commands/project/get.js +7 -7
- package/src/commands/project/list.js +5 -5
- package/src/commands/project/member/list.js +6 -6
- package/src/commands/spectral/download.js +8 -8
- package/src/commands/spectral/upload.js +10 -10
- package/src/config/index.js +18 -4
- package/src/format-readme.js +3 -2
- package/src/help.js +2 -2
- package/src/hooks/setup-config.js +9 -5
- package/src/index.js +2 -2
- package/src/requests/api.js +3 -3
- package/src/requests/domain.js +3 -3
- package/src/requests/project.js +2 -2
- package/src/requests/spec.js +5 -5
- package/src/requests/spectral.js +3 -3
- package/src/requests/standardization.js +4 -4
- package/src/support/command/base-command.js +10 -11
- package/src/support/command/base-validate-command.js +3 -3
- package/src/support/command/handle-response.js +7 -5
- package/src/support/command/parse-input.js +8 -6
- package/src/support/command/update-command.js +5 -5
- package/src/support/http/default-headers.js +1 -1
- package/src/support/http/header-templates.js +2 -2
- package/src/support/http/index.js +7 -7
- package/src/support/http/proxy-agent.js +4 -4
- package/src/support/inquirer/index.js +4 -4
- package/src/support/inquirer/prompt-templates.js +2 -2
- package/src/support/isOnPrem.js +4 -4
- package/src/template-strings/errors.js +2 -2
- package/src/template-strings/index.js +3 -3
- package/src/template-strings/info.js +2 -2
- package/src/utils/definitions.js +8 -6
- package/src/utils/general.js +3 -3
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ The Swagger CLI enables teams to build automation and workflows around Swagger.
|
|
|
17
17
|
* [Contributing](#contributing)
|
|
18
18
|
<!-- tocstop -->
|
|
19
19
|
# Requirements
|
|
20
|
-
* Node.js 22.
|
|
20
|
+
* Node.js 22.12 or later.
|
|
21
21
|
* Swagger SaaS, or Swagger Studio On-Premise 2.x. On-Premise 1.x is not supported.
|
|
22
22
|
|
|
23
23
|
# Installation
|
|
@@ -110,7 +110,7 @@ set NODE_EXTRA_CA_CERTS=%USERPROFILE%\extra-ca-certs.pem
|
|
|
110
110
|
$ swaggerhub COMMAND
|
|
111
111
|
running command...
|
|
112
112
|
$ swaggerhub --version
|
|
113
|
-
swaggerhub-cli/0.
|
|
113
|
+
swaggerhub-cli/0.14.0 linux-x64 node-v22.9.0
|
|
114
114
|
$ swaggerhub --help [COMMAND]
|
|
115
115
|
USAGE
|
|
116
116
|
$ swaggerhub COMMAND
|
|
@@ -195,7 +195,7 @@ EXAMPLES
|
|
|
195
195
|
$ swaggerhub api:clone organization/api/1.0.0 1.0.1 --visibility public
|
|
196
196
|
```
|
|
197
197
|
|
|
198
|
-
_See code: [src/commands/api/clone.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
198
|
+
_See code: [src/commands/api/clone.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/clone.js)_
|
|
199
199
|
|
|
200
200
|
## `swaggerhub api:create`
|
|
201
201
|
|
|
@@ -236,7 +236,7 @@ EXAMPLES
|
|
|
236
236
|
$ swaggerhub api:create organization/api/1.0.0 --published=publish --setdefault --file api.json
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
_See code: [src/commands/api/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
239
|
+
_See code: [src/commands/api/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/create.js)_
|
|
240
240
|
|
|
241
241
|
## `swaggerhub api:delete`
|
|
242
242
|
|
|
@@ -265,7 +265,7 @@ EXAMPLES
|
|
|
265
265
|
$ swaggerhub api:delete organization/api --force
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
-
_See code: [src/commands/api/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
268
|
+
_See code: [src/commands/api/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/delete.js)_
|
|
269
269
|
|
|
270
270
|
## `swaggerhub api:get`
|
|
271
271
|
|
|
@@ -295,7 +295,7 @@ EXAMPLES
|
|
|
295
295
|
$ swaggerhub api:get organization/api/1.0.0 --json
|
|
296
296
|
```
|
|
297
297
|
|
|
298
|
-
_See code: [src/commands/api/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
298
|
+
_See code: [src/commands/api/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/get.js)_
|
|
299
299
|
|
|
300
300
|
## `swaggerhub api:publish`
|
|
301
301
|
|
|
@@ -321,7 +321,7 @@ EXAMPLES
|
|
|
321
321
|
$ swaggerhub api:publish organization/api/1.0.0 --force
|
|
322
322
|
```
|
|
323
323
|
|
|
324
|
-
_See code: [src/commands/api/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
324
|
+
_See code: [src/commands/api/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/publish.js)_
|
|
325
325
|
|
|
326
326
|
## `swaggerhub api:rename`
|
|
327
327
|
|
|
@@ -345,7 +345,7 @@ EXAMPLES
|
|
|
345
345
|
$ swaggerhub api:rename organization/apiOldName apiNewName
|
|
346
346
|
```
|
|
347
347
|
|
|
348
|
-
_See code: [src/commands/api/rename.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
348
|
+
_See code: [src/commands/api/rename.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/rename.js)_
|
|
349
349
|
|
|
350
350
|
## `swaggerhub api:setdefault`
|
|
351
351
|
|
|
@@ -368,7 +368,7 @@ EXAMPLES
|
|
|
368
368
|
$ swaggerhub api:setdefault organization/api/2.0.0
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
-
_See code: [src/commands/api/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
371
|
+
_See code: [src/commands/api/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/setdefault.js)_
|
|
372
372
|
|
|
373
373
|
## `swaggerhub api:unpublish`
|
|
374
374
|
|
|
@@ -391,7 +391,7 @@ EXAMPLES
|
|
|
391
391
|
$ swaggerhub api:unpublish organization/api/1.0.0
|
|
392
392
|
```
|
|
393
393
|
|
|
394
|
-
_See code: [src/commands/api/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
394
|
+
_See code: [src/commands/api/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/unpublish.js)_
|
|
395
395
|
|
|
396
396
|
## `swaggerhub api:update`
|
|
397
397
|
|
|
@@ -435,7 +435,7 @@ EXAMPLES
|
|
|
435
435
|
$ swaggerhub api:update organization/api/1.0.0 --visibility=private
|
|
436
436
|
```
|
|
437
437
|
|
|
438
|
-
_See code: [src/commands/api/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
438
|
+
_See code: [src/commands/api/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/update.js)_
|
|
439
439
|
|
|
440
440
|
## `swaggerhub api:validate`
|
|
441
441
|
|
|
@@ -469,7 +469,7 @@ EXAMPLES
|
|
|
469
469
|
$ swaggerhub api:validate --fail-on-critical --json organization/api
|
|
470
470
|
```
|
|
471
471
|
|
|
472
|
-
_See code: [src/commands/api/validate/index.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
472
|
+
_See code: [src/commands/api/validate/index.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/validate/index.js)_
|
|
473
473
|
|
|
474
474
|
## `swaggerhub api:validate:download-rules`
|
|
475
475
|
|
|
@@ -500,7 +500,7 @@ EXAMPLES
|
|
|
500
500
|
$ swaggerhub api:validate:download-rules myOrg --include-disabled-rules -s
|
|
501
501
|
```
|
|
502
502
|
|
|
503
|
-
_See code: [src/commands/api/validate/download-rules.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
503
|
+
_See code: [src/commands/api/validate/download-rules.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/validate/download-rules.js)_
|
|
504
504
|
|
|
505
505
|
## `swaggerhub api:validate:local`
|
|
506
506
|
|
|
@@ -530,7 +530,7 @@ EXAMPLES
|
|
|
530
530
|
$ swaggerhub api:validate:local --organization myOrg --file ./my-api.json --fail-on-critical --json
|
|
531
531
|
```
|
|
532
532
|
|
|
533
|
-
_See code: [src/commands/api/validate/local.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
533
|
+
_See code: [src/commands/api/validate/local.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/api/validate/local.js)_
|
|
534
534
|
|
|
535
535
|
## `swaggerhub configure`
|
|
536
536
|
|
|
@@ -553,7 +553,7 @@ DESCRIPTION
|
|
|
553
553
|
settings.
|
|
554
554
|
```
|
|
555
555
|
|
|
556
|
-
_See code: [src/commands/configure.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
556
|
+
_See code: [src/commands/configure.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/configure.js)_
|
|
557
557
|
|
|
558
558
|
## `swaggerhub domain:clone`
|
|
559
559
|
|
|
@@ -581,7 +581,7 @@ EXAMPLES
|
|
|
581
581
|
$ swaggerhub domain:clone organization/domain/1.0.0 1.0.1 --visibility public
|
|
582
582
|
```
|
|
583
583
|
|
|
584
|
-
_See code: [src/commands/domain/clone.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
584
|
+
_See code: [src/commands/domain/clone.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/clone.js)_
|
|
585
585
|
|
|
586
586
|
## `swaggerhub domain:create`
|
|
587
587
|
|
|
@@ -622,7 +622,7 @@ EXAMPLES
|
|
|
622
622
|
$ swaggerhub domain:create organization/domain/1.0.0 --published=publish --setdefault --file domain.json
|
|
623
623
|
```
|
|
624
624
|
|
|
625
|
-
_See code: [src/commands/domain/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
625
|
+
_See code: [src/commands/domain/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/create.js)_
|
|
626
626
|
|
|
627
627
|
## `swaggerhub domain:delete`
|
|
628
628
|
|
|
@@ -651,7 +651,7 @@ EXAMPLES
|
|
|
651
651
|
$ swaggerhub domain:delete organization/domain --force
|
|
652
652
|
```
|
|
653
653
|
|
|
654
|
-
_See code: [src/commands/domain/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
654
|
+
_See code: [src/commands/domain/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/delete.js)_
|
|
655
655
|
|
|
656
656
|
## `swaggerhub domain:get`
|
|
657
657
|
|
|
@@ -680,7 +680,7 @@ EXAMPLES
|
|
|
680
680
|
$ swaggerhub domain:get organization/domain/1.0.0 --json
|
|
681
681
|
```
|
|
682
682
|
|
|
683
|
-
_See code: [src/commands/domain/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
683
|
+
_See code: [src/commands/domain/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/get.js)_
|
|
684
684
|
|
|
685
685
|
## `swaggerhub domain:publish`
|
|
686
686
|
|
|
@@ -706,7 +706,7 @@ EXAMPLES
|
|
|
706
706
|
$ swaggerhub domain:publish organization/domain/1.0.0 --force
|
|
707
707
|
```
|
|
708
708
|
|
|
709
|
-
_See code: [src/commands/domain/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
709
|
+
_See code: [src/commands/domain/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/publish.js)_
|
|
710
710
|
|
|
711
711
|
## `swaggerhub domain:rename`
|
|
712
712
|
|
|
@@ -733,7 +733,7 @@ EXAMPLES
|
|
|
733
733
|
$ swaggerhub domain:rename organization/domainOldName domainNewName --force
|
|
734
734
|
```
|
|
735
735
|
|
|
736
|
-
_See code: [src/commands/domain/rename.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
736
|
+
_See code: [src/commands/domain/rename.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/rename.js)_
|
|
737
737
|
|
|
738
738
|
## `swaggerhub domain:setdefault`
|
|
739
739
|
|
|
@@ -756,7 +756,7 @@ EXAMPLES
|
|
|
756
756
|
$ swaggerhub domain:setdefault organization/domain/2.0.0
|
|
757
757
|
```
|
|
758
758
|
|
|
759
|
-
_See code: [src/commands/domain/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
759
|
+
_See code: [src/commands/domain/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/setdefault.js)_
|
|
760
760
|
|
|
761
761
|
## `swaggerhub domain:unpublish`
|
|
762
762
|
|
|
@@ -779,7 +779,7 @@ EXAMPLES
|
|
|
779
779
|
$ swaggerhub domain:unpublish organization/domain/1.0.0
|
|
780
780
|
```
|
|
781
781
|
|
|
782
|
-
_See code: [src/commands/domain/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
782
|
+
_See code: [src/commands/domain/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/unpublish.js)_
|
|
783
783
|
|
|
784
784
|
## `swaggerhub domain:update`
|
|
785
785
|
|
|
@@ -823,7 +823,7 @@ EXAMPLES
|
|
|
823
823
|
$ swaggerhub domain:update organization/domain/1.0.0 --visibility=private
|
|
824
824
|
```
|
|
825
825
|
|
|
826
|
-
_See code: [src/commands/domain/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
826
|
+
_See code: [src/commands/domain/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/domain/update.js)_
|
|
827
827
|
|
|
828
828
|
## `swaggerhub help`
|
|
829
829
|
|
|
@@ -871,7 +871,7 @@ EXAMPLES
|
|
|
871
871
|
$ swaggerhub integration:create organization/api/1.0.0 --file config.json
|
|
872
872
|
```
|
|
873
873
|
|
|
874
|
-
_See code: [src/commands/integration/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
874
|
+
_See code: [src/commands/integration/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/integration/create.js)_
|
|
875
875
|
|
|
876
876
|
## `swaggerhub integration:delete`
|
|
877
877
|
|
|
@@ -894,7 +894,7 @@ EXAMPLES
|
|
|
894
894
|
$ swaggerhub integration:delete organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
|
|
895
895
|
```
|
|
896
896
|
|
|
897
|
-
_See code: [src/commands/integration/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
897
|
+
_See code: [src/commands/integration/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/integration/delete.js)_
|
|
898
898
|
|
|
899
899
|
## `swaggerhub integration:execute`
|
|
900
900
|
|
|
@@ -917,7 +917,7 @@ EXAMPLES
|
|
|
917
917
|
$ swaggerhub integration:execute organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
|
|
918
918
|
```
|
|
919
919
|
|
|
920
|
-
_See code: [src/commands/integration/execute.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
920
|
+
_See code: [src/commands/integration/execute.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/integration/execute.js)_
|
|
921
921
|
|
|
922
922
|
## `swaggerhub integration:get`
|
|
923
923
|
|
|
@@ -940,7 +940,7 @@ EXAMPLES
|
|
|
940
940
|
$ swaggerhub integration:get organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
|
|
941
941
|
```
|
|
942
942
|
|
|
943
|
-
_See code: [src/commands/integration/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
943
|
+
_See code: [src/commands/integration/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/integration/get.js)_
|
|
944
944
|
|
|
945
945
|
## `swaggerhub integration:list`
|
|
946
946
|
|
|
@@ -963,7 +963,7 @@ EXAMPLES
|
|
|
963
963
|
$ swaggerhub integration:list organization/api/1.0.0
|
|
964
964
|
```
|
|
965
965
|
|
|
966
|
-
_See code: [src/commands/integration/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
966
|
+
_See code: [src/commands/integration/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/integration/list.js)_
|
|
967
967
|
|
|
968
968
|
## `swaggerhub integration:update`
|
|
969
969
|
|
|
@@ -987,7 +987,7 @@ EXAMPLES
|
|
|
987
987
|
$ swaggerhub integration:update organization/api/1.0.0/503c2db6-448a-4678-abcd-0123456789abc --file config.json
|
|
988
988
|
```
|
|
989
989
|
|
|
990
|
-
_See code: [src/commands/integration/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
990
|
+
_See code: [src/commands/integration/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/integration/update.js)_
|
|
991
991
|
|
|
992
992
|
## `swaggerhub plugins`
|
|
993
993
|
|
|
@@ -1301,7 +1301,7 @@ EXAMPLES
|
|
|
1301
1301
|
$ swaggerhub project:api:add organization/project_name my_api
|
|
1302
1302
|
```
|
|
1303
1303
|
|
|
1304
|
-
_See code: [src/commands/project/api/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1304
|
+
_See code: [src/commands/project/api/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/api/add.js)_
|
|
1305
1305
|
|
|
1306
1306
|
## `swaggerhub project:api:remove`
|
|
1307
1307
|
|
|
@@ -1325,7 +1325,7 @@ EXAMPLES
|
|
|
1325
1325
|
$ swaggerhub project:api:remove organization/project_name my_api
|
|
1326
1326
|
```
|
|
1327
1327
|
|
|
1328
|
-
_See code: [src/commands/project/api/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1328
|
+
_See code: [src/commands/project/api/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/api/remove.js)_
|
|
1329
1329
|
|
|
1330
1330
|
## `swaggerhub project:create`
|
|
1331
1331
|
|
|
@@ -1361,7 +1361,7 @@ EXAMPLES
|
|
|
1361
1361
|
$ swaggerhub project:create organization/new_project_name -a "testapi1" -d "testdomain3" --description "description"
|
|
1362
1362
|
```
|
|
1363
1363
|
|
|
1364
|
-
_See code: [src/commands/project/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1364
|
+
_See code: [src/commands/project/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/create.js)_
|
|
1365
1365
|
|
|
1366
1366
|
## `swaggerhub project:delete`
|
|
1367
1367
|
|
|
@@ -1384,7 +1384,7 @@ EXAMPLES
|
|
|
1384
1384
|
$ swaggerhub project:delete organization/project_name
|
|
1385
1385
|
```
|
|
1386
1386
|
|
|
1387
|
-
_See code: [src/commands/project/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1387
|
+
_See code: [src/commands/project/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/delete.js)_
|
|
1388
1388
|
|
|
1389
1389
|
## `swaggerhub project:domain:add`
|
|
1390
1390
|
|
|
@@ -1408,7 +1408,7 @@ EXAMPLES
|
|
|
1408
1408
|
$ swaggerhub project:domain:add organization/project_name my_domain
|
|
1409
1409
|
```
|
|
1410
1410
|
|
|
1411
|
-
_See code: [src/commands/project/domain/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1411
|
+
_See code: [src/commands/project/domain/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/domain/add.js)_
|
|
1412
1412
|
|
|
1413
1413
|
## `swaggerhub project:domain:remove`
|
|
1414
1414
|
|
|
@@ -1432,7 +1432,7 @@ EXAMPLES
|
|
|
1432
1432
|
$ swaggerhub project:domain:remove organization/project_name my_domain
|
|
1433
1433
|
```
|
|
1434
1434
|
|
|
1435
|
-
_See code: [src/commands/project/domain/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1435
|
+
_See code: [src/commands/project/domain/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/domain/remove.js)_
|
|
1436
1436
|
|
|
1437
1437
|
## `swaggerhub project:get`
|
|
1438
1438
|
|
|
@@ -1455,7 +1455,7 @@ EXAMPLES
|
|
|
1455
1455
|
$ swaggerhub project:get organization/project_name
|
|
1456
1456
|
```
|
|
1457
1457
|
|
|
1458
|
-
_See code: [src/commands/project/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1458
|
+
_See code: [src/commands/project/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/get.js)_
|
|
1459
1459
|
|
|
1460
1460
|
## `swaggerhub project:list`
|
|
1461
1461
|
|
|
@@ -1488,7 +1488,7 @@ EXAMPLES
|
|
|
1488
1488
|
$ swaggerhub project:list organization --page 2 --limit 20
|
|
1489
1489
|
```
|
|
1490
1490
|
|
|
1491
|
-
_See code: [src/commands/project/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1491
|
+
_See code: [src/commands/project/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/list.js)_
|
|
1492
1492
|
|
|
1493
1493
|
## `swaggerhub project:member:list`
|
|
1494
1494
|
|
|
@@ -1511,7 +1511,7 @@ EXAMPLES
|
|
|
1511
1511
|
$ swaggerhub project:member:list organization/project_name
|
|
1512
1512
|
```
|
|
1513
1513
|
|
|
1514
|
-
_See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1514
|
+
_See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/project/member/list.js)_
|
|
1515
1515
|
|
|
1516
1516
|
## `swaggerhub spectral:download`
|
|
1517
1517
|
|
|
@@ -1535,7 +1535,7 @@ EXAMPLES
|
|
|
1535
1535
|
$ swaggerhub spectral:download my_organization/my_api_ruleset rules/
|
|
1536
1536
|
```
|
|
1537
1537
|
|
|
1538
|
-
_See code: [src/commands/spectral/download.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1538
|
+
_See code: [src/commands/spectral/download.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/spectral/download.js)_
|
|
1539
1539
|
|
|
1540
1540
|
## `swaggerhub spectral:upload`
|
|
1541
1541
|
|
|
@@ -1559,7 +1559,7 @@ EXAMPLES
|
|
|
1559
1559
|
$ swaggerhub spectral:upload my_organization/my_api_ruleset rules/
|
|
1560
1560
|
```
|
|
1561
1561
|
|
|
1562
|
-
_See code: [src/commands/spectral/upload.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.
|
|
1562
|
+
_See code: [src/commands/spectral/upload.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.15.0/src/commands/spectral/upload.js)_
|
|
1563
1563
|
<!-- commandsstop -->
|
|
1564
1564
|
|
|
1565
1565
|
# Plugins
|
package/bin/run
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// Suppress the deprecated punycode module warning
|
|
4
4
|
// https://nodejs.org/api/deprecations.html#deprecations_dep0040_the_punycode_module_is_deprecated
|
|
5
|
-
process.noDeprecation = true
|
|
5
|
+
process.noDeprecation = true
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
// Dynamic import: static imports are hoisted and would load before the line above.
|
|
8
|
+
const { execute } = await import('@oclif/core')
|
|
9
|
+
|
|
10
|
+
await execute({ dir: import.meta.url })
|