@apimatic/cli 1.0.1-alpha.6 → 1.0.1-alpha.7
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 +15 -71
- package/lib/commands/api/transform.js +2 -2
- package/lib/commands/portal/generate.js +2 -4
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/lib/commands/api/index.d.ts +0 -6
- package/lib/commands/api/index.js +0 -21
- package/lib/commands/auth/index.d.ts +0 -6
- package/lib/commands/auth/index.js +0 -25
- package/lib/commands/portal/index.d.ts +0 -6
- package/lib/commands/portal/index.js +0 -20
- package/lib/commands/sdk/index.d.ts +0 -6
- package/lib/commands/sdk/index.js +0 -21
package/README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
@apimatic/cli
|
|
2
2
|
=============
|
|
3
|
+
|
|
3
4
|
The official CLI for APIMatic.
|
|
5
|
+
|
|
4
6
|
[](https://oclif.io)
|
|
5
7
|
[](https://npmjs.org/package/@apimatic/cli)
|
|
6
8
|
[](https://npmjs.org/package/@apimatic/cli)
|
|
7
9
|
[](https://github.com/apimatic/apimatic-cli/blob/master/package.json)
|
|
10
|
+
|
|
8
11
|
<!-- toc -->
|
|
9
12
|
* [Usage](#usage)
|
|
10
13
|
* [Commands](#commands)
|
|
@@ -16,43 +19,26 @@ $ npm install -g @apimatic/cli
|
|
|
16
19
|
$ apimatic COMMAND
|
|
17
20
|
running command...
|
|
18
21
|
$ apimatic (-v|--version|version)
|
|
19
|
-
@apimatic/cli/1.0.1-alpha.
|
|
22
|
+
@apimatic/cli/1.0.1-alpha.7 linux-x64 node-v16.13.0
|
|
20
23
|
$ apimatic --help [COMMAND]
|
|
21
24
|
USAGE
|
|
22
25
|
$ apimatic COMMAND
|
|
23
26
|
...
|
|
24
27
|
```
|
|
25
28
|
<!-- usagestop -->
|
|
29
|
+
|
|
26
30
|
# Commands
|
|
27
31
|
<!-- commands -->
|
|
28
|
-
* [`apimatic api`](#apimatic-api)
|
|
29
32
|
* [`apimatic api:transform`](#apimatic-apitransform)
|
|
30
33
|
* [`apimatic api:validate`](#apimatic-apivalidate)
|
|
31
|
-
* [`apimatic auth`](#apimatic-auth)
|
|
32
34
|
* [`apimatic auth:login`](#apimatic-authlogin)
|
|
33
35
|
* [`apimatic auth:logout`](#apimatic-authlogout)
|
|
34
36
|
* [`apimatic auth:status`](#apimatic-authstatus)
|
|
35
37
|
* [`apimatic autocomplete [SHELL]`](#apimatic-autocomplete-shell)
|
|
36
38
|
* [`apimatic help [COMMAND]`](#apimatic-help-command)
|
|
37
|
-
* [`apimatic portal`](#apimatic-portal)
|
|
38
39
|
* [`apimatic portal:generate`](#apimatic-portalgenerate)
|
|
39
|
-
* [`apimatic sdk`](#apimatic-sdk)
|
|
40
40
|
* [`apimatic sdk:generate`](#apimatic-sdkgenerate)
|
|
41
41
|
|
|
42
|
-
## `apimatic api`
|
|
43
|
-
|
|
44
|
-
Manage APIs
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
USAGE
|
|
48
|
-
$ apimatic api
|
|
49
|
-
|
|
50
|
-
EXAMPLE
|
|
51
|
-
$ apimatic api --help
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
_See code: [src/commands/api/index.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.6/src/commands/api/index.ts)_
|
|
55
|
-
|
|
56
42
|
## `apimatic api:transform`
|
|
57
43
|
|
|
58
44
|
Transform API specifications from one format to another. Supports [10+ different formats](https://www.apimatic.io/transformer/#supported-formats) including OpenApi/Swagger, RAML, WSDL and Postman Collections.
|
|
@@ -71,8 +57,8 @@ OPTIONS
|
|
|
71
57
|
--file=file path to the API specification file to transform
|
|
72
58
|
|
|
73
59
|
--format=format (required) specification format to transform API specification into
|
|
74
|
-
(OpenApi3Json|OpenApi3Yaml|APIMATIC|WADL2009|
|
|
75
|
-
|
|
60
|
+
(OpenApi3Json|OpenApi3Yaml|APIMATIC|WADL2009|WSDL|Swagger10|
|
|
61
|
+
Swagger20|SwaggerYaml|RAML|RAML10|Postman10|Postman20)
|
|
76
62
|
|
|
77
63
|
--url=url URL to the API specification file to transform. Can be used in place of the --file option
|
|
78
64
|
if the API specification is publicly available.
|
|
@@ -85,7 +71,7 @@ EXAMPLES
|
|
|
85
71
|
Success! Your transformed file is located at D:/swagger_raml.yaml
|
|
86
72
|
```
|
|
87
73
|
|
|
88
|
-
_See code: [src/commands/api/transform.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
74
|
+
_See code: [src/commands/api/transform.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/api/transform.ts)_
|
|
89
75
|
|
|
90
76
|
## `apimatic api:validate`
|
|
91
77
|
|
|
@@ -110,21 +96,7 @@ EXAMPLES
|
|
|
110
96
|
Specification file provided is valid
|
|
111
97
|
```
|
|
112
98
|
|
|
113
|
-
_See code: [src/commands/api/validate.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
114
|
-
|
|
115
|
-
## `apimatic auth`
|
|
116
|
-
|
|
117
|
-
Manage this CLI's authentication state.
|
|
118
|
-
|
|
119
|
-
```
|
|
120
|
-
USAGE
|
|
121
|
-
$ apimatic auth
|
|
122
|
-
|
|
123
|
-
EXAMPLE
|
|
124
|
-
$ apimatic auth --help
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
_See code: [src/commands/auth/index.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.6/src/commands/auth/index.ts)_
|
|
99
|
+
_See code: [src/commands/api/validate.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/api/validate.ts)_
|
|
128
100
|
|
|
129
101
|
## `apimatic auth:login`
|
|
130
102
|
|
|
@@ -148,7 +120,7 @@ EXAMPLES
|
|
|
148
120
|
Authentication key successfully set
|
|
149
121
|
```
|
|
150
122
|
|
|
151
|
-
_See code: [src/commands/auth/login.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
123
|
+
_See code: [src/commands/auth/login.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/auth/login.ts)_
|
|
152
124
|
|
|
153
125
|
## `apimatic auth:logout`
|
|
154
126
|
|
|
@@ -163,7 +135,7 @@ EXAMPLE
|
|
|
163
135
|
Logged out
|
|
164
136
|
```
|
|
165
137
|
|
|
166
|
-
_See code: [src/commands/auth/logout.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
138
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/auth/logout.ts)_
|
|
167
139
|
|
|
168
140
|
## `apimatic auth:status`
|
|
169
141
|
|
|
@@ -178,7 +150,7 @@ EXAMPLE
|
|
|
178
150
|
Currently logged in as apimatic-client@gmail.com
|
|
179
151
|
```
|
|
180
152
|
|
|
181
|
-
_See code: [src/commands/auth/status.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
153
|
+
_See code: [src/commands/auth/status.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/auth/status.ts)_
|
|
182
154
|
|
|
183
155
|
## `apimatic autocomplete [SHELL]`
|
|
184
156
|
|
|
@@ -220,20 +192,6 @@ OPTIONS
|
|
|
220
192
|
|
|
221
193
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.10/src/commands/help.ts)_
|
|
222
194
|
|
|
223
|
-
## `apimatic portal`
|
|
224
|
-
|
|
225
|
-
Manage API documentation portals
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
USAGE
|
|
229
|
-
$ apimatic portal
|
|
230
|
-
|
|
231
|
-
EXAMPLE
|
|
232
|
-
$apimatic portal --help
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
_See code: [src/commands/portal/index.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.6/src/commands/portal/index.ts)_
|
|
236
|
-
|
|
237
195
|
## `apimatic portal:generate`
|
|
238
196
|
|
|
239
197
|
Generate and download a static API Documentation portal. Requires an input directory containing API specifications, a config file and optionally, markdown guides. For details, refer to the [documentation](https://portal-api-docs.apimatic.io/#/http/generating-api-portal/build-file)
|
|
@@ -246,7 +204,7 @@ OPTIONS
|
|
|
246
204
|
-f, --force overwrite if a portal exists in the destination
|
|
247
205
|
--auth-key=auth-key override current authentication state with an authentication key
|
|
248
206
|
--destination=destination [default: /home/runner/work/apimatic-cli/apimatic-cli/cli] path to the downloaded portal
|
|
249
|
-
--folder=folder path to the input directory containing API specifications and config files
|
|
207
|
+
--folder=folder [default: ./] path to the input directory containing API specifications and config files
|
|
250
208
|
--zip download the generated portal as a .zip archive
|
|
251
209
|
|
|
252
210
|
EXAMPLE
|
|
@@ -254,21 +212,7 @@ EXAMPLE
|
|
|
254
212
|
Your portal has been generated at D:/
|
|
255
213
|
```
|
|
256
214
|
|
|
257
|
-
_See code: [src/commands/portal/generate.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
258
|
-
|
|
259
|
-
## `apimatic sdk`
|
|
260
|
-
|
|
261
|
-
Generate and manage SDKs for APIs
|
|
262
|
-
|
|
263
|
-
```
|
|
264
|
-
USAGE
|
|
265
|
-
$ apimatic sdk
|
|
266
|
-
|
|
267
|
-
EXAMPLE
|
|
268
|
-
$apimatic sdk --help
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
_See code: [src/commands/sdk/index.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.6/src/commands/sdk/index.ts)_
|
|
215
|
+
_See code: [src/commands/portal/generate.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/portal/generate.ts)_
|
|
272
216
|
|
|
273
217
|
## `apimatic sdk:generate`
|
|
274
218
|
|
|
@@ -309,5 +253,5 @@ EXAMPLES
|
|
|
309
253
|
Success! Your SDK is located at swagger_sdk_csharp
|
|
310
254
|
```
|
|
311
255
|
|
|
312
|
-
_See code: [src/commands/sdk/generate.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.
|
|
256
|
+
_See code: [src/commands/sdk/generate.ts](https://github.com/apimatic/apimatic-cli/blob/v1.0.1-alpha.7/src/commands/sdk/generate.ts)_
|
|
313
257
|
<!-- commandsstop -->
|
|
@@ -85,8 +85,8 @@ Transform.flags = {
|
|
|
85
85
|
parse: (format) => transform_2.getValidFormat(format.toUpperCase()),
|
|
86
86
|
required: true,
|
|
87
87
|
description: `specification format to transform API specification into
|
|
88
|
-
(OpenApi3Json|OpenApi3Yaml|APIMATIC|WADL2009|
|
|
89
|
-
|
|
88
|
+
(OpenApi3Json|OpenApi3Yaml|APIMATIC|WADL2009|WSDL|Swagger10|
|
|
89
|
+
Swagger20|SwaggerYaml|RAML|RAML10|Postman10|Postman20)`
|
|
90
90
|
}),
|
|
91
91
|
file: command_1.flags.string({
|
|
92
92
|
parse: (input) => path.resolve(input),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const fs = require("fs-extra");
|
|
4
4
|
const path = require("path");
|
|
5
|
-
const cli_ux_1 = require("cli-ux");
|
|
6
5
|
const command_1 = require("@oclif/command");
|
|
7
6
|
const sdk_1 = require("@apimatic/sdk");
|
|
8
7
|
const sdk_client_1 = require("../../client-utils/sdk-client");
|
|
@@ -45,7 +44,6 @@ class PortalGenerate extends command_1.Command {
|
|
|
45
44
|
this.log(`Your portal has been generated at ${generatedPortalPath}`);
|
|
46
45
|
}
|
|
47
46
|
catch (error) {
|
|
48
|
-
cli_ux_1.default.action.stop();
|
|
49
47
|
if (error && error.response) {
|
|
50
48
|
const apiError = error;
|
|
51
49
|
const apiResponse = apiError.response;
|
|
@@ -60,7 +58,7 @@ class PortalGenerate extends command_1.Command {
|
|
|
60
58
|
return this.error(utils_1.replaceHTML(nestedErrors.message));
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
|
-
else if (apiResponse.status === 401 && responseData.length > 0
|
|
61
|
+
else if (apiResponse.status === 401 && responseData.length > 0) {
|
|
64
62
|
this.error(utils_1.replaceHTML(responseData));
|
|
65
63
|
}
|
|
66
64
|
else if (apiResponse.status === 403 && apiResponse.statusText) {
|
|
@@ -82,7 +80,7 @@ PortalGenerate.description = "Generate and download a static API Documentation p
|
|
|
82
80
|
PortalGenerate.flags = {
|
|
83
81
|
folder: command_1.flags.string({
|
|
84
82
|
parse: (input) => path.resolve(input),
|
|
85
|
-
default: "",
|
|
83
|
+
default: "./",
|
|
86
84
|
description: "path to the input directory containing API specifications and config files"
|
|
87
85
|
}),
|
|
88
86
|
destination: command_1.flags.string({
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.1-alpha.
|
|
1
|
+
{"version":"1.0.1-alpha.7","commands":{"api:transform":{"id":"api:transform","description":"Transform API specifications from one format to another. Supports [10+ different formats](https://www.apimatic.io/transformer/#supported-formats) including OpenApi/Swagger, RAML, WSDL and Postman Collections.","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic api:transform --format=\"OpenApi3Json\" --file=\"./specs/sample.json\" --destination=\"D:/\"\nSuccess! Your transformed file is located at D:/Transformed_OpenApi3Json.json\n","$ apimatic api:transform --format=RAML --url=\"https://petstore.swagger.io/v2/swagger.json\" --destination=\"D:/\"\nSuccess! Your transformed file is located at D:/swagger_raml.yaml\n"],"flags":{"format":{"name":"format","type":"option","description":"specification format to transform API specification into\n(OpenApi3Json|OpenApi3Yaml|APIMATIC|WADL2009|WSDL|Swagger10|\nSwagger20|SwaggerYaml|RAML|RAML10|Postman10|Postman20)","required":true},"file":{"name":"file","type":"option","description":"path to the API specification file to transform","default":""},"url":{"name":"url","type":"option","description":"URL to the API specification file to transform. Can be used in place of the --file option if the API specification is publicly available.","default":""},"destination":{"name":"destination","type":"option","description":"directory to download transformed file to","default":"/home/runner/work/apimatic-cli/apimatic-cli/cli"},"force":{"name":"force","type":"boolean","char":"f","description":"overwrite if same file exist in the destination","allowNo":false},"auth-key":{"name":"auth-key","type":"option","description":"override current authentication state with an authentication key"}},"args":[]},"api:validate":{"id":"api:validate","description":"Validate the syntactic and semantic correctness of an API specification","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic api:validate --file=\"./specs/sample.json\"\nSpecification file provided is valid\n","$ apimatic api:validate --url=https://petstore.swagger.io/v2/swagger.json\nSpecification file provided is valid\n"],"flags":{"file":{"name":"file","type":"option","description":"Path to the API specification file to validate","default":""},"url":{"name":"url","type":"option","description":"URL to the specification file to validate. Can be used in place of the --file option if the API specification is publicly available.","default":""},"auth-key":{"name":"auth-key","type":"option","description":"override current authentication state with an authentication key"}},"args":[]},"auth:login":{"id":"auth:login","description":"Login using your APIMatic credentials or an API Key","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic auth:login\nPlease enter your registered email: apimatic-user@gmail.com\nPlease enter your password: *********\n\nYou have successfully logged into APIMatic\n","$ apimatic auth:login --auth-key=xxxxxx\nAuthentication key successfully set"],"flags":{"auth-key":{"name":"auth-key","type":"option","description":"Set authentication key for all commands","default":""}},"args":[]},"auth:logout":{"id":"auth:logout","description":"Clear local login credentials","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic auth:logout\nLogged out\n"],"flags":{},"args":[]},"auth:status":{"id":"auth:status","description":"View current authentication state","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic auth:status\nCurrently logged in as apimatic-client@gmail.com\n"],"flags":{},"args":[]},"portal:generate":{"id":"portal:generate","description":"Generate and download a static API Documentation portal. Requires an input directory containing API specifications, a config file and optionally, markdown guides. For details, refer to the [documentation](https://portal-api-docs.apimatic.io/#/http/generating-api-portal/build-file)","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic portal:generate --folder=\"./portal/\" --destination=\"D:/\"\nYour portal has been generated at D:/\n"],"flags":{"folder":{"name":"folder","type":"option","description":"path to the input directory containing API specifications and config files","default":"./"},"destination":{"name":"destination","type":"option","description":"path to the downloaded portal","default":"/home/runner/work/apimatic-cli/apimatic-cli/cli"},"force":{"name":"force","type":"boolean","char":"f","description":"overwrite if a portal exists in the destination","allowNo":false},"zip":{"name":"zip","type":"boolean","description":"download the generated portal as a .zip archive","allowNo":false},"auth-key":{"name":"auth-key","type":"option","description":"override current authentication state with an authentication key","default":""}},"args":[]},"sdk:generate":{"id":"sdk:generate","description":"Generate SDK for your APIs","pluginName":"@apimatic/cli","pluginType":"core","aliases":[],"examples":["$ apimatic sdk:generate --platform=\"CSHARP\" --file=\"./specs/sample.json\"\nGenerating SDK... done\nDownloading SDK... done\nSuccess! Your SDK is located at swagger_sdk_csharp","$ apimatic sdk:generate --platform=\"CSHARP\" --url=https://petstore.swagger.io/v2/swagger.json\nGenerating SDK... done\nDownloading SDK... done\nSuccess! Your SDK is located at swagger_sdk_csharp\n"],"flags":{"platform":{"name":"platform","type":"option","description":"language platform for sdk\nSimple: CSHARP|JAVA|PYTHON|RUBY|PHP|TYPESCRIPT\nLegacy: CS_NET_STANDARD_LIB|CS_PORTABLE_NET_LIB|CS_UNIVERSAL_WINDOWS_PLATFORM_LIB|\n JAVA_ECLIPSE_JRE_LIB|PHP_GENERIC_LIB|PYTHON_GENERIC_LIB|RUBY_GENERIC_LIB|\n TS_GENERIC_LIB","required":true},"file":{"name":"file","type":"option","description":"path to the API specification to generate SDKs for","default":""},"url":{"name":"url","type":"option","description":"URL to the API specification to generate SDKs for. Can be used in place of the --file option if the API specification is publicly available.","default":""},"destination":{"name":"destination","type":"option","description":"directory to download the generated SDK to","default":"/home/runner/work/apimatic-cli/apimatic-cli/cli"},"force":{"name":"force","type":"boolean","char":"f","description":"overwrite if an SDK already exists in the destination","allowNo":false},"zip":{"name":"zip","type":"boolean","description":"download the generated SDK as a .zip archive","allowNo":false},"auth-key":{"name":"auth-key","type":"option","description":"override current authentication state with an authentication key","default":""}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const command_1 = require("@oclif/command");
|
|
4
|
-
class Api extends command_1.Command {
|
|
5
|
-
async run() {
|
|
6
|
-
this.log(`Manage APIs
|
|
7
|
-
|
|
8
|
-
USAGE
|
|
9
|
-
$ apimatic api
|
|
10
|
-
|
|
11
|
-
EXAMPLE
|
|
12
|
-
$ apimatic api --help
|
|
13
|
-
|
|
14
|
-
COMMANDS
|
|
15
|
-
api:transform Transform API specifications from one format to another. Supports [10+ different formats](https://www.apimatic.io/transformer/#supported-formats) including OpenApi/Swagger, RAML, WSDL and Postman Collections.
|
|
16
|
-
api:validate Validate the syntactic and semantic correctness of an API specification`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = Api;
|
|
20
|
-
Api.description = "Manage APIs";
|
|
21
|
-
Api.examples = ["$ apimatic api --help"];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const command_1 = require("@oclif/command");
|
|
4
|
-
class Auth extends command_1.Command {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.run = async () => {
|
|
8
|
-
this.log(`Manage this CLI's authentication state.
|
|
9
|
-
|
|
10
|
-
USAGE
|
|
11
|
-
$ apimatic auth
|
|
12
|
-
|
|
13
|
-
EXAMPLE
|
|
14
|
-
$ apimatic auth --help
|
|
15
|
-
|
|
16
|
-
COMMANDS
|
|
17
|
-
auth:login Login using your APIMatic credentials or an API Key
|
|
18
|
-
auth:logout Clear local login credentials
|
|
19
|
-
auth:status View current authentication state`);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.default = Auth;
|
|
24
|
-
Auth.description = "Manage this CLI's authentication state.";
|
|
25
|
-
Auth.examples = ["$ apimatic auth --help"];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const command_1 = require("@oclif/command");
|
|
4
|
-
class SDK extends command_1.Command {
|
|
5
|
-
async run() {
|
|
6
|
-
this.log(`Manage API documentation portals
|
|
7
|
-
|
|
8
|
-
USAGE
|
|
9
|
-
$ apimatic portal
|
|
10
|
-
|
|
11
|
-
EXAMPLE
|
|
12
|
-
$apimatic portal --help
|
|
13
|
-
|
|
14
|
-
COMMANDS
|
|
15
|
-
portal:generate Generate and download a static API Documentation portal. Requires an input directory containing API specifications, a config file and optionally, markdown guides. For details, refer to the [documentation](https://portal-api-docs.apimatic.io/#/http/generating-api-portal/build-file)`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = SDK;
|
|
19
|
-
SDK.description = "Manage API documentation portals";
|
|
20
|
-
SDK.examples = ["$apimatic portal --help"];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const command_1 = require("@oclif/command");
|
|
4
|
-
class SDK extends command_1.Command {
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6
|
-
async run() {
|
|
7
|
-
this.log(`Generate and manage SDKs for APIs
|
|
8
|
-
|
|
9
|
-
USAGE
|
|
10
|
-
$ apimatic sdk
|
|
11
|
-
|
|
12
|
-
EXAMPLE
|
|
13
|
-
$apimatic sdk --help
|
|
14
|
-
|
|
15
|
-
COMMANDS
|
|
16
|
-
sdk:generate Generate SDK for your APIs`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = SDK;
|
|
20
|
-
SDK.description = "Generate and manage SDKs for APIs";
|
|
21
|
-
SDK.examples = ["$apimatic sdk --help"];
|