@apimatic/cli 1.1.0-alpha.9 → 1.1.0-beta.10
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 +443 -374
- package/bin/run.js +5 -0
- package/lib/actions/action-result.d.ts +19 -0
- package/lib/actions/action-result.js +70 -0
- package/lib/actions/action-result.js.map +1 -0
- package/lib/actions/api/transform.d.ts +15 -0
- package/lib/actions/api/transform.js +48 -0
- package/lib/actions/api/transform.js.map +1 -0
- package/lib/actions/api/validate.d.ts +14 -0
- package/lib/actions/api/validate.js +52 -0
- package/lib/actions/api/validate.js.map +1 -0
- package/lib/actions/auth/login.d.ts +13 -0
- package/lib/actions/auth/login.js +55 -0
- package/lib/actions/auth/login.js.map +1 -0
- package/lib/actions/auth/logout.d.ts +8 -0
- package/lib/actions/auth/logout.js +15 -0
- package/lib/actions/auth/logout.js.map +1 -0
- package/lib/actions/auth/status.d.ts +11 -0
- package/lib/actions/auth/status.js +26 -0
- package/lib/actions/auth/status.js.map +1 -0
- package/lib/actions/portal/copilot.d.ts +16 -0
- package/lib/actions/portal/copilot.js +89 -0
- package/lib/actions/portal/copilot.js.map +1 -0
- package/lib/actions/portal/generate.d.ts +11 -5
- package/lib/actions/portal/generate.js +60 -55
- package/lib/actions/portal/generate.js.map +1 -0
- package/lib/actions/portal/quickstart.d.ts +17 -0
- package/lib/actions/portal/quickstart.js +169 -0
- package/lib/actions/portal/quickstart.js.map +1 -0
- package/lib/actions/portal/recipe/new-recipe.d.ts +15 -0
- package/lib/actions/portal/recipe/new-recipe.js +177 -0
- package/lib/actions/portal/recipe/new-recipe.js.map +1 -0
- package/lib/actions/portal/serve.d.ts +15 -0
- package/lib/actions/portal/serve.js +104 -0
- package/lib/actions/portal/serve.js.map +1 -0
- package/lib/actions/portal/toc/new-toc.d.ts +17 -13
- package/lib/actions/portal/toc/new-toc.js +85 -123
- package/lib/actions/portal/toc/new-toc.js.map +1 -0
- package/lib/actions/quickstart.d.ts +10 -0
- package/lib/actions/quickstart.js +30 -0
- package/lib/actions/quickstart.js.map +1 -0
- package/lib/actions/sdk/generate.d.ts +13 -0
- package/lib/actions/sdk/generate.js +77 -0
- package/lib/actions/sdk/generate.js.map +1 -0
- package/lib/actions/sdk/quickstart.d.ts +17 -0
- package/lib/actions/sdk/quickstart.js +171 -0
- package/lib/actions/sdk/quickstart.js.map +1 -0
- package/lib/application/portal/recipe/portal-recipe.d.ts +8 -0
- package/lib/application/portal/recipe/portal-recipe.js +33 -0
- package/lib/application/portal/recipe/portal-recipe.js.map +1 -0
- package/lib/application/portal/recipe/recipe-generator.d.ts +21 -0
- package/lib/application/portal/recipe/recipe-generator.js +145 -0
- package/lib/application/portal/recipe/recipe-generator.js.map +1 -0
- package/lib/application/portal/toc/toc-content-parser.d.ts +1 -1
- package/lib/application/portal/toc/toc-content-parser.js +9 -11
- package/lib/application/portal/toc/toc-content-parser.js.map +1 -0
- package/lib/application/portal/toc/toc-structure-generator.d.ts +23 -2
- package/lib/application/portal/toc/toc-structure-generator.js +133 -66
- package/lib/application/portal/toc/toc-structure-generator.js.map +1 -0
- package/lib/client-utils/auth-manager.d.ts +7 -2
- package/lib/client-utils/auth-manager.js +26 -14
- package/lib/client-utils/auth-manager.js.map +1 -0
- package/lib/commands/api/transform.d.ts +10 -7
- package/lib/commands/api/transform.js +51 -111
- package/lib/commands/api/transform.js.map +1 -0
- package/lib/commands/api/validate.d.ts +7 -4
- package/lib/commands/api/validate.js +31 -74
- package/lib/commands/api/validate.js.map +1 -0
- package/lib/commands/auth/login.d.ts +3 -1
- package/lib/commands/auth/login.js +26 -68
- package/lib/commands/auth/login.js.map +1 -0
- package/lib/commands/auth/logout.d.ts +3 -1
- package/lib/commands/auth/logout.js +14 -21
- package/lib/commands/auth/logout.js.map +1 -0
- package/lib/commands/auth/status.d.ts +1 -0
- package/lib/commands/auth/status.js +18 -21
- package/lib/commands/auth/status.js.map +1 -0
- package/lib/commands/portal/copilot.d.ts +13 -0
- package/lib/commands/portal/copilot.js +34 -0
- package/lib/commands/portal/copilot.js.map +1 -0
- package/lib/commands/portal/generate.d.ts +7 -11
- package/lib/commands/portal/generate.js +26 -89
- package/lib/commands/portal/generate.js.map +1 -0
- package/lib/commands/portal/recipe/new.d.ts +12 -0
- package/lib/commands/portal/recipe/new.js +45 -0
- package/lib/commands/portal/recipe/new.js.map +1 -0
- package/lib/commands/portal/serve.d.ts +8 -8
- package/lib/commands/portal/serve.js +41 -125
- package/lib/commands/portal/serve.js.map +1 -0
- package/lib/commands/portal/toc/new.d.ts +8 -7
- package/lib/commands/portal/toc/new.js +52 -49
- package/lib/commands/portal/toc/new.js.map +1 -0
- package/lib/commands/quickstart.d.ts +9 -0
- package/lib/commands/quickstart.js +37 -0
- package/lib/commands/quickstart.js.map +1 -0
- package/lib/commands/sdk/generate.d.ts +10 -8
- package/lib/commands/sdk/generate.js +46 -131
- package/lib/commands/sdk/generate.js.map +1 -0
- package/lib/config/axios-config.js +4 -6
- package/lib/config/axios-config.js.map +1 -0
- package/lib/hooks/not-found.d.ts +3 -0
- package/lib/hooks/not-found.js +52 -0
- package/lib/hooks/not-found.js.map +1 -0
- package/lib/hooks/utils.d.ts +5 -0
- package/lib/hooks/utils.js +51 -0
- package/lib/hooks/utils.js.map +1 -0
- package/lib/index.js +2 -5
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/debounce-service.d.ts +10 -0
- package/lib/infrastructure/debounce-service.js +55 -0
- package/lib/infrastructure/debounce-service.js.map +1 -0
- package/lib/infrastructure/env-info.d.ts +12 -0
- package/lib/infrastructure/env-info.js +58 -0
- package/lib/infrastructure/env-info.js.map +1 -0
- package/lib/infrastructure/file-service.d.ts +25 -0
- package/lib/infrastructure/file-service.js +131 -0
- package/lib/infrastructure/file-service.js.map +1 -0
- package/lib/infrastructure/launcher-service.d.ts +9 -0
- package/lib/infrastructure/launcher-service.js +72 -0
- package/lib/infrastructure/launcher-service.js.map +1 -0
- package/lib/infrastructure/network-service.d.ts +3 -0
- package/lib/infrastructure/network-service.js +7 -0
- package/lib/infrastructure/network-service.js.map +1 -0
- package/lib/infrastructure/service-error.d.ts +16 -0
- package/lib/infrastructure/service-error.js +49 -0
- package/lib/infrastructure/service-error.js.map +1 -0
- package/lib/infrastructure/services/api-client-factory.d.ts +6 -0
- package/lib/infrastructure/services/api-client-factory.js +20 -0
- package/lib/infrastructure/services/api-client-factory.js.map +1 -0
- package/lib/infrastructure/services/api-service.d.ts +13 -0
- package/lib/infrastructure/services/api-service.js +103 -0
- package/lib/infrastructure/services/api-service.js.map +1 -0
- package/lib/infrastructure/services/auth-service.d.ts +11 -0
- package/lib/infrastructure/services/auth-service.js +37 -0
- package/lib/infrastructure/services/auth-service.js.map +1 -0
- package/lib/infrastructure/services/file-download-service.d.ts +15 -0
- package/lib/infrastructure/services/file-download-service.js +104 -0
- package/lib/infrastructure/services/file-download-service.js.map +1 -0
- package/lib/infrastructure/services/portal-service.d.ts +15 -12
- package/lib/infrastructure/services/portal-service.js +152 -99
- package/lib/infrastructure/services/portal-service.js.map +1 -0
- package/lib/infrastructure/services/telemetry-service.d.ts +9 -0
- package/lib/infrastructure/services/telemetry-service.js +38 -0
- package/lib/infrastructure/services/telemetry-service.js.map +1 -0
- package/lib/infrastructure/services/transformation-service.d.ts +23 -0
- package/lib/infrastructure/services/transformation-service.js +56 -0
- package/lib/infrastructure/services/transformation-service.js.map +1 -0
- package/lib/infrastructure/services/validation-service.d.ts +43 -0
- package/lib/infrastructure/services/validation-service.js +142 -0
- package/lib/infrastructure/services/validation-service.js.map +1 -0
- package/lib/infrastructure/tmp-extensions.d.ts +2 -0
- package/lib/infrastructure/tmp-extensions.js +6 -0
- package/lib/infrastructure/tmp-extensions.js.map +1 -0
- package/lib/infrastructure/zip-service.d.ts +6 -0
- package/lib/infrastructure/zip-service.js +39 -0
- package/lib/infrastructure/zip-service.js.map +1 -0
- package/lib/prompts/api/transform.d.ts +11 -0
- package/lib/prompts/api/transform.js +29 -0
- package/lib/prompts/api/transform.js.map +1 -0
- package/lib/prompts/api/validate.d.ts +15 -0
- package/lib/prompts/api/validate.js +76 -0
- package/lib/prompts/api/validate.js.map +1 -0
- package/lib/prompts/auth/login.d.ts +10 -0
- package/lib/prompts/auth/login.js +22 -0
- package/lib/prompts/auth/login.js.map +1 -0
- package/lib/prompts/auth/logout.d.ts +3 -0
- package/lib/prompts/auth/logout.js +7 -0
- package/lib/prompts/auth/logout.js.map +1 -0
- package/lib/prompts/auth/status.d.ts +8 -0
- package/lib/prompts/auth/status.js +22 -0
- package/lib/prompts/auth/status.js.map +1 -0
- package/lib/prompts/format.d.ts +31 -0
- package/lib/prompts/format.js +89 -0
- package/lib/prompts/format.js.map +1 -0
- package/lib/prompts/portal/copilot.d.ts +18 -0
- package/lib/prompts/portal/copilot.js +82 -0
- package/lib/prompts/portal/copilot.js.map +1 -0
- package/lib/prompts/portal/generate.d.ts +13 -8
- package/lib/prompts/portal/generate.js +36 -53
- package/lib/prompts/portal/generate.js.map +1 -0
- package/lib/prompts/portal/quickstart.d.ts +31 -29
- package/lib/prompts/portal/quickstart.js +139 -185
- package/lib/prompts/portal/quickstart.js.map +1 -0
- package/lib/prompts/portal/recipe/new-recipe.d.ts +29 -0
- package/lib/prompts/portal/recipe/new-recipe.js +165 -0
- package/lib/prompts/portal/recipe/new-recipe.js.map +1 -0
- package/lib/prompts/portal/serve.d.ts +9 -5
- package/lib/prompts/portal/serve.js +29 -19
- package/lib/prompts/portal/serve.js.map +1 -0
- package/lib/prompts/portal/toc/new-toc.d.ts +13 -8
- package/lib/prompts/portal/toc/new-toc.js +36 -36
- package/lib/prompts/portal/toc/new-toc.js.map +1 -0
- package/lib/prompts/prompt.d.ts +3 -0
- package/lib/prompts/prompt.js +37 -0
- package/lib/prompts/prompt.js.map +1 -0
- package/lib/prompts/quickstart.d.ts +6 -0
- package/lib/prompts/quickstart.js +25 -0
- package/lib/prompts/quickstart.js.map +1 -0
- package/lib/prompts/sdk/generate.d.ts +16 -0
- package/lib/prompts/sdk/generate.js +57 -0
- package/lib/prompts/sdk/generate.js.map +1 -0
- package/lib/prompts/sdk/quickstart.d.ts +35 -0
- package/lib/prompts/sdk/quickstart.js +177 -0
- package/lib/prompts/sdk/quickstart.js.map +1 -0
- package/lib/types/api/account.d.ts +10 -0
- package/lib/types/api/account.js +2 -0
- package/lib/types/api/account.js.map +1 -0
- package/lib/types/api/transform.d.ts +14 -25
- package/lib/types/api/transform.js +20 -23
- package/lib/types/api/transform.js.map +1 -0
- package/lib/types/build/build.d.ts +22 -0
- package/lib/types/build/build.js +7 -0
- package/lib/types/build/build.js.map +1 -0
- package/lib/types/build-context.d.ts +13 -0
- package/lib/types/build-context.js +33 -0
- package/lib/types/build-context.js.map +1 -0
- package/lib/types/common/command-metadata.d.ts +4 -0
- package/lib/types/common/command-metadata.js +2 -0
- package/lib/types/common/command-metadata.js.map +1 -0
- package/lib/types/events/domain-event.d.ts +8 -0
- package/lib/types/events/domain-event.js +11 -0
- package/lib/types/events/domain-event.js.map +1 -0
- package/lib/types/events/quickstart-completed.d.ts +7 -0
- package/lib/types/events/quickstart-completed.js +10 -0
- package/lib/types/events/quickstart-completed.js.map +1 -0
- package/lib/types/events/quickstart-initiated.d.ts +7 -0
- package/lib/types/events/quickstart-initiated.js +10 -0
- package/lib/types/events/quickstart-initiated.js.map +1 -0
- package/lib/types/events/recipe-creation-failed.d.ts +5 -0
- package/lib/types/events/recipe-creation-failed.js +8 -0
- package/lib/types/events/recipe-creation-failed.js.map +1 -0
- package/lib/types/events/toc-creation-failed.d.ts +5 -0
- package/lib/types/events/toc-creation-failed.js +8 -0
- package/lib/types/events/toc-creation-failed.js.map +1 -0
- package/lib/types/file/directory.d.ts +17 -0
- package/lib/types/file/directory.js +87 -0
- package/lib/types/file/directory.js.map +1 -0
- package/lib/types/file/directoryPath.d.ts +10 -0
- package/lib/types/file/directoryPath.js +26 -0
- package/lib/types/file/directoryPath.js.map +1 -0
- package/lib/types/file/fileName.d.ts +7 -0
- package/lib/types/file/fileName.js +21 -0
- package/lib/types/file/fileName.js.map +1 -0
- package/lib/types/file/filePath.d.ts +10 -0
- package/lib/types/file/filePath.js +32 -0
- package/lib/types/file/filePath.js.map +1 -0
- package/lib/types/file/resource-input.d.ts +5 -0
- package/lib/types/file/resource-input.js +42 -0
- package/lib/types/file/resource-input.js.map +1 -0
- package/lib/types/file/urlPath.d.ts +6 -0
- package/lib/types/file/urlPath.js +22 -0
- package/lib/types/file/urlPath.js.map +1 -0
- package/lib/types/flags-provider.d.ts +15 -0
- package/lib/types/flags-provider.js +34 -0
- package/lib/types/flags-provider.js.map +1 -0
- package/lib/types/portal-context.d.ts +13 -0
- package/lib/types/portal-context.js +38 -0
- package/lib/types/portal-context.js.map +1 -0
- package/lib/types/recipe/recipe.d.ts +22 -0
- package/lib/types/recipe/recipe.js +6 -0
- package/lib/types/recipe/recipe.js.map +1 -0
- package/lib/types/recipe-context.d.ts +9 -0
- package/lib/types/recipe-context.js +26 -0
- package/lib/types/recipe-context.js.map +1 -0
- package/lib/types/resource-context.d.ts +12 -0
- package/lib/types/resource-context.js +30 -0
- package/lib/types/resource-context.js.map +1 -0
- package/lib/types/sdk/generate.d.ts +9 -22
- package/lib/types/sdk/generate.js +25 -14
- package/lib/types/sdk/generate.js.map +1 -0
- package/lib/types/sdk-context.d.ts +14 -0
- package/lib/types/sdk-context.js +32 -0
- package/lib/types/sdk-context.js.map +1 -0
- package/lib/types/sdl/sdl.d.ts +27 -0
- package/lib/types/sdl/sdl.js +145 -3
- package/lib/types/sdl/sdl.js.map +1 -0
- package/lib/types/spec-context.d.ts +12 -0
- package/lib/types/spec-context.js +29 -0
- package/lib/types/spec-context.js.map +1 -0
- package/lib/types/temp-context.d.ts +11 -0
- package/lib/types/temp-context.js +27 -0
- package/lib/types/temp-context.js.map +1 -0
- package/lib/types/toc/toc.d.ts +31 -6
- package/lib/types/toc/toc.js +2 -10
- package/lib/types/toc/toc.js.map +1 -0
- package/lib/types/toc-context.d.ts +12 -0
- package/lib/types/toc-context.js +26 -0
- package/lib/types/toc-context.js.map +1 -0
- package/lib/types/transform-context.d.ts +13 -0
- package/lib/types/transform-context.js +30 -0
- package/lib/types/transform-context.js.map +1 -0
- package/lib/types/utils.d.ts +0 -9
- package/lib/types/utils.js +2 -3
- package/lib/types/utils.js.map +1 -0
- package/lib/types/versioned-build-context.d.ts +15 -0
- package/lib/types/versioned-build-context.js +28 -0
- package/lib/types/versioned-build-context.js.map +1 -0
- package/lib/utils/string-utils.d.ts +3 -0
- package/lib/utils/string-utils.js +79 -0
- package/lib/utils/string-utils.js.map +1 -0
- package/lib/utils/utils.d.ts +2 -44
- package/lib/utils/utils.js +14 -366
- package/lib/utils/utils.js.map +1 -0
- package/package.json +50 -31
- package/bin/run +0 -9
- package/lib/application/portal/toc/sdl-parser.d.ts +0 -13
- package/lib/application/portal/toc/sdl-parser.js +0 -53
- package/lib/client-utils/sdk-client.d.ts +0 -23
- package/lib/client-utils/sdk-client.js +0 -124
- package/lib/commands/portal/quickstart.d.ts +0 -10
- package/lib/commands/portal/quickstart.js +0 -79
- package/lib/config/env.d.ts +0 -27
- package/lib/config/env.js +0 -31
- package/lib/controllers/api/transform.d.ts +0 -5
- package/lib/controllers/api/transform.js +0 -56
- package/lib/controllers/api/validate.d.ts +0 -3
- package/lib/controllers/api/validate.js +0 -33
- package/lib/controllers/portal/generate.d.ts +0 -3
- package/lib/controllers/portal/generate.js +0 -110
- package/lib/controllers/portal/quickstart.d.ts +0 -14
- package/lib/controllers/portal/quickstart.js +0 -258
- package/lib/controllers/portal/serve.d.ts +0 -3
- package/lib/controllers/portal/serve.js +0 -138
- package/lib/controllers/sdk/generate.d.ts +0 -4
- package/lib/controllers/sdk/generate.js +0 -66
- package/lib/services/portal/server.d.ts +0 -14
- package/lib/services/portal/server.js +0 -101
- package/lib/types/api/validate.d.ts +0 -12
- package/lib/types/api/validate.js +0 -3
- package/lib/types/common/result.d.ts +0 -17
- package/lib/types/common/result.js +0 -36
- package/lib/types/portal/generate.d.ts +0 -26
- package/lib/types/portal/generate.js +0 -4
- package/lib/types/portal/quickstart.d.ts +0 -17
- package/lib/types/portal/quickstart.js +0 -3
- package/lib/validators/common/directoryValidator.d.ts +0 -9
- package/lib/validators/common/directoryValidator.js +0 -53
- package/lib/validators/common/portValidator.d.ts +0 -5
- package/lib/validators/common/portValidator.js +0 -20
- package/lib/validators/portal/serveValidator.d.ts +0 -6
- package/lib/validators/portal/serveValidator.js +0 -21
package/README.md
CHANGED
|
@@ -1,374 +1,443 @@
|
|
|
1
|
-
@apimatic/cli
|
|
2
|
-
=============
|
|
3
|
-
apimatic is in
|
|
4
|
-
|
|
5
|
-
The official CLI for APIMatic.
|
|
6
|
-
|
|
7
|
-
[](https://oclif.io)
|
|
8
|
-
[](https://npmjs.org/package/@apimatic/cli)
|
|
9
|
-
[](https://npmjs.org/package/@apimatic/cli)
|
|
10
|
-
[](https://github.com/apimatic/apimatic-cli/blob/master/package.json)
|
|
11
|
-
|
|
12
|
-
# Getting Started
|
|
13
|
-
|
|
14
|
-
To get started with APIMatic's CLI using a step by step wizard, run the following command:
|
|
15
|
-
|
|
16
|
-
```sh-session
|
|
17
|
-
$ apimatic
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
# Usage
|
|
21
|
-
<!-- usage -->
|
|
22
|
-
```sh-session
|
|
23
|
-
$ npm install -g @apimatic/cli
|
|
24
|
-
$ apimatic COMMAND
|
|
25
|
-
running command...
|
|
26
|
-
$ apimatic (--version)
|
|
27
|
-
@apimatic/cli/1.1.0-
|
|
28
|
-
$ apimatic --help [COMMAND]
|
|
29
|
-
USAGE
|
|
30
|
-
$ apimatic COMMAND
|
|
31
|
-
...
|
|
32
|
-
```
|
|
33
|
-
<!-- usagestop -->
|
|
34
|
-
|
|
35
|
-
# Commands
|
|
36
|
-
<!-- commands -->
|
|
37
|
-
* [`apimatic api
|
|
38
|
-
* [`apimatic api
|
|
39
|
-
* [`apimatic auth
|
|
40
|
-
* [`apimatic auth
|
|
41
|
-
* [`apimatic auth
|
|
42
|
-
* [`apimatic autocomplete [SHELL]`](#apimatic-autocomplete-shell)
|
|
43
|
-
* [`apimatic help [COMMAND]`](#apimatic-help-command)
|
|
44
|
-
* [`apimatic portal
|
|
45
|
-
* [`apimatic portal
|
|
46
|
-
* [`apimatic portal
|
|
47
|
-
* [`apimatic portal
|
|
48
|
-
* [`apimatic
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
--
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
--
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
DESCRIPTION
|
|
100
|
-
Validate
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
_See code: [src/commands/api/validate.ts](https://github.com/apimatic/apimatic-cli/blob/
|
|
111
|
-
|
|
112
|
-
## `apimatic auth
|
|
113
|
-
|
|
114
|
-
Login
|
|
115
|
-
|
|
116
|
-
```
|
|
117
|
-
USAGE
|
|
118
|
-
$ apimatic auth
|
|
119
|
-
|
|
120
|
-
FLAGS
|
|
121
|
-
--auth-key=<value>
|
|
122
|
-
|
|
123
|
-
DESCRIPTION
|
|
124
|
-
Login
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
EXAMPLES
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
$ apimatic autocomplete
|
|
193
|
-
|
|
194
|
-
$ apimatic autocomplete zsh
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
--
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
1
|
+
@apimatic/cli
|
|
2
|
+
=============
|
|
3
|
+
apimatic is in beta.
|
|
4
|
+
|
|
5
|
+
The official CLI for APIMatic.
|
|
6
|
+
|
|
7
|
+
[](https://oclif.io)
|
|
8
|
+
[](https://npmjs.org/package/@apimatic/cli)
|
|
9
|
+
[](https://npmjs.org/package/@apimatic/cli)
|
|
10
|
+
[](https://github.com/apimatic/apimatic-cli/blob/master/package.json)
|
|
11
|
+
|
|
12
|
+
# Getting Started
|
|
13
|
+
|
|
14
|
+
To get started with APIMatic's CLI using a step by step wizard, run the following command:
|
|
15
|
+
|
|
16
|
+
```sh-session
|
|
17
|
+
$ apimatic quickstart
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
# Usage
|
|
21
|
+
<!-- usage -->
|
|
22
|
+
```sh-session
|
|
23
|
+
$ npm install -g @apimatic/cli
|
|
24
|
+
$ apimatic COMMAND
|
|
25
|
+
running command...
|
|
26
|
+
$ apimatic (--version)
|
|
27
|
+
@apimatic/cli/1.1.0-beta.8 win32-x64 node-v23.4.0
|
|
28
|
+
$ apimatic --help [COMMAND]
|
|
29
|
+
USAGE
|
|
30
|
+
$ apimatic COMMAND
|
|
31
|
+
...
|
|
32
|
+
```
|
|
33
|
+
<!-- usagestop -->
|
|
34
|
+
|
|
35
|
+
# Commands
|
|
36
|
+
<!-- commands -->
|
|
37
|
+
* [`apimatic api transform`](#apimatic-api-transform)
|
|
38
|
+
* [`apimatic api validate`](#apimatic-api-validate)
|
|
39
|
+
* [`apimatic auth login`](#apimatic-auth-login)
|
|
40
|
+
* [`apimatic auth logout`](#apimatic-auth-logout)
|
|
41
|
+
* [`apimatic auth status`](#apimatic-auth-status)
|
|
42
|
+
* [`apimatic autocomplete [SHELL]`](#apimatic-autocomplete-shell)
|
|
43
|
+
* [`apimatic help [COMMAND]`](#apimatic-help-command)
|
|
44
|
+
* [`apimatic portal copilot`](#apimatic-portal-copilot)
|
|
45
|
+
* [`apimatic portal generate`](#apimatic-portal-generate)
|
|
46
|
+
* [`apimatic portal recipe new`](#apimatic-portal-recipe-new)
|
|
47
|
+
* [`apimatic portal serve`](#apimatic-portal-serve)
|
|
48
|
+
* [`apimatic portal toc new`](#apimatic-portal-toc-new)
|
|
49
|
+
* [`apimatic quickstart`](#apimatic-quickstart)
|
|
50
|
+
* [`apimatic sdk generate`](#apimatic-sdk-generate)
|
|
51
|
+
|
|
52
|
+
## `apimatic api transform`
|
|
53
|
+
|
|
54
|
+
Transform API specifications between different formats.
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
USAGE
|
|
58
|
+
$ apimatic api transform --format
|
|
59
|
+
apimatic|wadl2009|wsdl|swagger10|swagger20|swaggeryaml|oas3|openapi3yaml|apiblueprint|raml|raml10|postman10|postman2
|
|
60
|
+
0|graphqlschema [--file <value>] [--url <value>] [-d <value>] [-f] [-k <value>]
|
|
61
|
+
|
|
62
|
+
FLAGS
|
|
63
|
+
-d, --destination=<value> [default: ./] directory to save the transformed file to
|
|
64
|
+
-f, --force overwrite changes without asking for user consent.
|
|
65
|
+
-k, --auth-key=<value> override current authentication state with an authentication key.
|
|
66
|
+
--file=<value> path to the API specification file to transform
|
|
67
|
+
--format=<option> (required) specification format to transform API specification into
|
|
68
|
+
<options: apimatic|wadl2009|wsdl|swagger10|swagger20|swaggeryaml|oas3|openapi3yaml|apibluep
|
|
69
|
+
rint|raml|raml10|postman10|postman20|graphqlschema>
|
|
70
|
+
--url=<value> URL to the API specification file to transform (publicly accessible)
|
|
71
|
+
|
|
72
|
+
DESCRIPTION
|
|
73
|
+
Transform API specifications between different formats.
|
|
74
|
+
|
|
75
|
+
Transform API specifications from one format to another.
|
|
76
|
+
Supports multiple formats including OpenAPI/Swagger, RAML, WSDL, and Postman Collections.
|
|
77
|
+
|
|
78
|
+
EXAMPLES
|
|
79
|
+
apimatic api transform --format=openapi3yaml --file=./specs/sample.json --destination=./
|
|
80
|
+
|
|
81
|
+
apimatic api transform --format=raml --url="https://petstore.swagger.io/v2/swagger.json" --destination=./
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
_See code: [src/commands/api/transform.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/api/transform.ts)_
|
|
85
|
+
|
|
86
|
+
## `apimatic api validate`
|
|
87
|
+
|
|
88
|
+
Validate API specification for syntactic and semantic correctness.
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
USAGE
|
|
92
|
+
$ apimatic api validate [--file <value>] [--url <value>] [-k <value>]
|
|
93
|
+
|
|
94
|
+
FLAGS
|
|
95
|
+
-k, --auth-key=<value> override current authentication state with an authentication key.
|
|
96
|
+
--file=<value> Path to the API specification file to validate
|
|
97
|
+
--url=<value> URL to the API specification file to validate (publicly accessible)
|
|
98
|
+
|
|
99
|
+
DESCRIPTION
|
|
100
|
+
Validate API specification for syntactic and semantic correctness.
|
|
101
|
+
|
|
102
|
+
Validate your API specification to ensure it adheres to syntactic and semantic standards.
|
|
103
|
+
|
|
104
|
+
EXAMPLES
|
|
105
|
+
apimatic api validate --file=./specs/sample.json
|
|
106
|
+
|
|
107
|
+
apimatic api validate --url="https://petstore.swagger.io/v2/swagger.json"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
_See code: [src/commands/api/validate.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/api/validate.ts)_
|
|
111
|
+
|
|
112
|
+
## `apimatic auth login`
|
|
113
|
+
|
|
114
|
+
Login to your APIMatic account.
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
USAGE
|
|
118
|
+
$ apimatic auth login [-k <value>]
|
|
119
|
+
|
|
120
|
+
FLAGS
|
|
121
|
+
-k, --auth-key=<value> Sets authentication key for all commands.
|
|
122
|
+
|
|
123
|
+
DESCRIPTION
|
|
124
|
+
Login to your APIMatic account.
|
|
125
|
+
|
|
126
|
+
Login using your APIMatic credentials or an API Key
|
|
127
|
+
|
|
128
|
+
EXAMPLES
|
|
129
|
+
apimatic auth login
|
|
130
|
+
|
|
131
|
+
apimatic auth login --auth-key={api-key}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
_See code: [src/commands/auth/login.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/auth/login.ts)_
|
|
135
|
+
|
|
136
|
+
## `apimatic auth logout`
|
|
137
|
+
|
|
138
|
+
Clears the local login credentials.
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
USAGE
|
|
142
|
+
$ apimatic auth logout
|
|
143
|
+
|
|
144
|
+
DESCRIPTION
|
|
145
|
+
Clears the local login credentials.
|
|
146
|
+
|
|
147
|
+
Clears the local login credentials. This will also clear any cached credentials from the CLI.
|
|
148
|
+
|
|
149
|
+
EXAMPLES
|
|
150
|
+
apimatic auth logout
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/auth/logout.ts)_
|
|
154
|
+
|
|
155
|
+
## `apimatic auth status`
|
|
156
|
+
|
|
157
|
+
View the currently logged in user.
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
USAGE
|
|
161
|
+
$ apimatic auth status
|
|
162
|
+
|
|
163
|
+
DESCRIPTION
|
|
164
|
+
View the currently logged in user.
|
|
165
|
+
|
|
166
|
+
EXAMPLES
|
|
167
|
+
apimatic auth status
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
_See code: [src/commands/auth/status.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/auth/status.ts)_
|
|
171
|
+
|
|
172
|
+
## `apimatic autocomplete [SHELL]`
|
|
173
|
+
|
|
174
|
+
Display autocomplete installation instructions.
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
USAGE
|
|
178
|
+
$ apimatic autocomplete [SHELL] [-r]
|
|
179
|
+
|
|
180
|
+
ARGUMENTS
|
|
181
|
+
SHELL (zsh|bash|powershell) Shell type
|
|
182
|
+
|
|
183
|
+
FLAGS
|
|
184
|
+
-r, --refresh-cache Refresh cache (ignores displaying instructions)
|
|
185
|
+
|
|
186
|
+
DESCRIPTION
|
|
187
|
+
Display autocomplete installation instructions.
|
|
188
|
+
|
|
189
|
+
EXAMPLES
|
|
190
|
+
$ apimatic autocomplete
|
|
191
|
+
|
|
192
|
+
$ apimatic autocomplete bash
|
|
193
|
+
|
|
194
|
+
$ apimatic autocomplete zsh
|
|
195
|
+
|
|
196
|
+
$ apimatic autocomplete powershell
|
|
197
|
+
|
|
198
|
+
$ apimatic autocomplete --refresh-cache
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/main/src/commands/autocomplete/index.ts)_
|
|
202
|
+
|
|
203
|
+
## `apimatic help [COMMAND]`
|
|
204
|
+
|
|
205
|
+
Display help for apimatic.
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
USAGE
|
|
209
|
+
$ apimatic help [COMMAND...] [-n]
|
|
210
|
+
|
|
211
|
+
ARGUMENTS
|
|
212
|
+
COMMAND... Command to show help for.
|
|
213
|
+
|
|
214
|
+
FLAGS
|
|
215
|
+
-n, --nested-commands Include all nested commands in the output.
|
|
216
|
+
|
|
217
|
+
DESCRIPTION
|
|
218
|
+
Display help for apimatic.
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/main/src/commands/help.ts)_
|
|
222
|
+
|
|
223
|
+
## `apimatic portal copilot`
|
|
224
|
+
|
|
225
|
+
Configure API Copilot for your API Documentation portal
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
USAGE
|
|
229
|
+
$ apimatic portal copilot [-i <value>] [--disable] [-f] [-k <value>]
|
|
230
|
+
|
|
231
|
+
FLAGS
|
|
232
|
+
-f, --force overwrite changes without asking for user consent.
|
|
233
|
+
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes API
|
|
234
|
+
specifications and configuration files.
|
|
235
|
+
-k, --auth-key=<value> override current authentication state with an authentication key.
|
|
236
|
+
--disable marks the API Copilot as disabled in the configuration
|
|
237
|
+
|
|
238
|
+
DESCRIPTION
|
|
239
|
+
Configure API Copilot for your API Documentation portal
|
|
240
|
+
|
|
241
|
+
Displays available API Copilots associated with your account and allows you to select which one to integrate with your
|
|
242
|
+
portal. Each APIMatic account includes one Copilot by default. The selected Copilot will be added to your
|
|
243
|
+
'APIMATIC-BUILD.json' file
|
|
244
|
+
|
|
245
|
+
EXAMPLES
|
|
246
|
+
apimatic portal copilot --input=./
|
|
247
|
+
|
|
248
|
+
apimatic portal copilot --input=./ --disable
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
_See code: [src/commands/portal/copilot.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/portal/copilot.ts)_
|
|
252
|
+
|
|
253
|
+
## `apimatic portal generate`
|
|
254
|
+
|
|
255
|
+
Generate an API Documentation portal.
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
USAGE
|
|
259
|
+
$ apimatic portal generate [-i <value>] [-d <value>] [-f] [--zip] [-k <value>]
|
|
260
|
+
|
|
261
|
+
FLAGS
|
|
262
|
+
-d, --destination=<value> [default: <input>/portal] path where the portal will be generated.
|
|
263
|
+
-f, --force overwrite changes without asking for user consent.
|
|
264
|
+
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
|
|
265
|
+
API specifications and configuration files.
|
|
266
|
+
-k, --auth-key=<value> override current authentication state with an authentication key.
|
|
267
|
+
--zip download the generated portal as a .zip archive
|
|
268
|
+
|
|
269
|
+
DESCRIPTION
|
|
270
|
+
Generate an API Documentation portal.
|
|
271
|
+
|
|
272
|
+
Generate an API Documentation portal. Requires an input directory containing API specifications, a config file and
|
|
273
|
+
optionally, markdown guides. For details, refer to the [documentation](https://docs.apimatic.io/platform-api/#/http/gu
|
|
274
|
+
ides/generating-on-prem-api-portal/build-file-reference)
|
|
275
|
+
|
|
276
|
+
EXAMPLES
|
|
277
|
+
apimatic portal generate
|
|
278
|
+
|
|
279
|
+
apimatic portal generate --input="./" --destination="./portal"
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
_See code: [src/commands/portal/generate.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/portal/generate.ts)_
|
|
283
|
+
|
|
284
|
+
## `apimatic portal recipe new`
|
|
285
|
+
|
|
286
|
+
Add an API Recipe to your API documentation portal.
|
|
287
|
+
|
|
288
|
+
```
|
|
289
|
+
USAGE
|
|
290
|
+
$ apimatic portal recipe new [--name <value>] [-i <value>] [-f]
|
|
291
|
+
|
|
292
|
+
FLAGS
|
|
293
|
+
-f, --force overwrite changes without asking for user consent.
|
|
294
|
+
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes API
|
|
295
|
+
specifications and configuration files.
|
|
296
|
+
--name=<value> name for the recipe
|
|
297
|
+
|
|
298
|
+
DESCRIPTION
|
|
299
|
+
Add an API Recipe to your API documentation portal.
|
|
300
|
+
|
|
301
|
+
This command adds a new API Recipe file to your documentation portal.
|
|
302
|
+
|
|
303
|
+
To learn more about API Recipes, visit:
|
|
304
|
+
https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-recipes
|
|
305
|
+
|
|
306
|
+
EXAMPLES
|
|
307
|
+
apimatic portal recipe new
|
|
308
|
+
|
|
309
|
+
apimatic portal recipe new --name="My API Recipe" --input="./"
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
_See code: [src/commands/portal/recipe/new.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/portal/recipe/new.ts)_
|
|
313
|
+
|
|
314
|
+
## `apimatic portal serve`
|
|
315
|
+
|
|
316
|
+
Generate and serve an API Documentation Portal with hot reload.
|
|
317
|
+
|
|
318
|
+
```
|
|
319
|
+
USAGE
|
|
320
|
+
$ apimatic portal serve [-p 3000] [-i <value>] [-d <value>] [-o] [--no-reload] [-k <value>]
|
|
321
|
+
|
|
322
|
+
FLAGS
|
|
323
|
+
-d, --destination=<value> [default: <input>/portal] path where the portal will be generated.
|
|
324
|
+
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
|
|
325
|
+
API specifications and configuration files.
|
|
326
|
+
-k, --auth-key=<value> override current authentication state with an authentication key.
|
|
327
|
+
-o, --open open the portal in the default browser.
|
|
328
|
+
-p, --port=3000 [default: 3000] port to serve the portal.
|
|
329
|
+
--no-reload disable hot reload.
|
|
330
|
+
|
|
331
|
+
DESCRIPTION
|
|
332
|
+
Generate and serve an API Documentation Portal with hot reload.
|
|
333
|
+
|
|
334
|
+
Requires an input directory with API specifications, a config file, and optionally markdown guides. Supports disabling
|
|
335
|
+
hot reload and opening the portal in the default browser.
|
|
336
|
+
|
|
337
|
+
EXAMPLES
|
|
338
|
+
apimatic portal serve
|
|
339
|
+
|
|
340
|
+
apimatic portal serve --input=./ --destination=./portal --port=3000 --open --no-reload
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
_See code: [src/commands/portal/serve.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/portal/serve.ts)_
|
|
344
|
+
|
|
345
|
+
## `apimatic portal toc new`
|
|
346
|
+
|
|
347
|
+
Generate a Table of Contents (TOC) file for your API documentation portal
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
USAGE
|
|
351
|
+
$ apimatic portal toc new [-d <value>] [-i <value>] [-f] [--expand-endpoints] [--expand-models]
|
|
352
|
+
[--expand-webhooks] [--expand-callbacks]
|
|
353
|
+
|
|
354
|
+
FLAGS
|
|
355
|
+
-d, --destination=<value> [default: <input>/src/content] path where the toc.yml will be generated.
|
|
356
|
+
-f, --force overwrite changes without asking for user consent.
|
|
357
|
+
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
|
|
358
|
+
API specifications and configuration files.
|
|
359
|
+
--expand-callbacks include individual entries for each callback in the generated 'toc.yml'. Requires a valid
|
|
360
|
+
API specification in the working directory.
|
|
361
|
+
--expand-endpoints include individual entries for each endpoint in the generated 'toc.yml'. Requires a valid
|
|
362
|
+
API specification in the working directory.
|
|
363
|
+
--expand-models include individual entries for each model in the generated 'toc.yml'. Requires a valid API
|
|
364
|
+
specification in the working directory.
|
|
365
|
+
--expand-webhooks include individual entries for each webhook in the generated 'toc.yml'. Requires a valid
|
|
366
|
+
API specification in the working directory.
|
|
367
|
+
|
|
368
|
+
DESCRIPTION
|
|
369
|
+
Generate a Table of Contents (TOC) file for your API documentation portal
|
|
370
|
+
|
|
371
|
+
This command generates a new Table of Contents (TOC) file used in the
|
|
372
|
+
generation of your API documentation portal.
|
|
373
|
+
|
|
374
|
+
The output is a YAML file with the .yml extension.
|
|
375
|
+
|
|
376
|
+
To learn more about the TOC file and APIMatic build directory structure, visit:
|
|
377
|
+
https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/overview-generating-api-portal
|
|
378
|
+
|
|
379
|
+
EXAMPLES
|
|
380
|
+
apimatic portal toc new --destination=./src/content/
|
|
381
|
+
|
|
382
|
+
apimatic portal toc new --input=./
|
|
383
|
+
|
|
384
|
+
apimatic portal toc new --input=./ --destination=./src/content/
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
_See code: [src/commands/portal/toc/new.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/portal/toc/new.ts)_
|
|
388
|
+
|
|
389
|
+
## `apimatic quickstart`
|
|
390
|
+
|
|
391
|
+
Create your first SDK or API Portal using APIMatic.
|
|
392
|
+
|
|
393
|
+
```
|
|
394
|
+
USAGE
|
|
395
|
+
$ apimatic quickstart
|
|
396
|
+
|
|
397
|
+
DESCRIPTION
|
|
398
|
+
Create your first SDK or API Portal using APIMatic.
|
|
399
|
+
|
|
400
|
+
Get started with your first SDK or API Portal in four easy steps.
|
|
401
|
+
|
|
402
|
+
EXAMPLES
|
|
403
|
+
apimatic quickstart
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
_See code: [src/commands/quickstart.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/quickstart.ts)_
|
|
407
|
+
|
|
408
|
+
## `apimatic sdk generate`
|
|
409
|
+
|
|
410
|
+
Generate an SDK for your API
|
|
411
|
+
|
|
412
|
+
```
|
|
413
|
+
USAGE
|
|
414
|
+
$ apimatic sdk generate -l csharp|java|php|python|ruby|typescript|go [-i <value>] [-d <value>] [--api-version
|
|
415
|
+
<value>] [-f] [--zip] [-k <value>]
|
|
416
|
+
|
|
417
|
+
FLAGS
|
|
418
|
+
-d, --destination=<value> directory where the SDK will be generated
|
|
419
|
+
-f, --force overwrite changes without asking for user consent.
|
|
420
|
+
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
|
|
421
|
+
API specifications and configuration files.
|
|
422
|
+
-k, --auth-key=<value> override current authentication state with an authentication key.
|
|
423
|
+
-l, --language=<option> (required) programming language for SDK generation
|
|
424
|
+
<options: csharp|java|php|python|ruby|typescript|go>
|
|
425
|
+
--api-version=<value> Version of the API to use for SDK generation (if multiple versions exist)
|
|
426
|
+
--zip Download the generated SDK as a .zip archive
|
|
427
|
+
|
|
428
|
+
DESCRIPTION
|
|
429
|
+
Generate an SDK for your API
|
|
430
|
+
|
|
431
|
+
Generate Software Development Kits (SDKs) from API specifications.
|
|
432
|
+
Supports multiple programming languages including Java, C#, Python, JavaScript, and more.
|
|
433
|
+
|
|
434
|
+
EXAMPLES
|
|
435
|
+
apimatic sdk generate --language=java
|
|
436
|
+
|
|
437
|
+
apimatic sdk generate --language=csharp --input=./
|
|
438
|
+
|
|
439
|
+
apimatic sdk generate --language=python --destination=./sdk --zip
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
_See code: [src/commands/sdk/generate.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/sdk/generate.ts)_
|
|
443
|
+
<!-- commandsstop -->
|