@apimatic/cli 1.1.0-alpha.9 → 1.1.0-beta.2

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.
Files changed (337) hide show
  1. package/README.md +436 -374
  2. package/bin/run.js +5 -0
  3. package/lib/actions/action-result.d.ts +13 -0
  4. package/lib/actions/action-result.js +44 -0
  5. package/lib/actions/action-result.js.map +1 -0
  6. package/lib/actions/api/transform.d.ts +15 -0
  7. package/lib/actions/api/transform.js +48 -0
  8. package/lib/actions/api/transform.js.map +1 -0
  9. package/lib/actions/api/validate.d.ts +12 -0
  10. package/lib/actions/api/validate.js +41 -0
  11. package/lib/actions/api/validate.js.map +1 -0
  12. package/lib/actions/auth/login.d.ts +13 -0
  13. package/lib/actions/auth/login.js +55 -0
  14. package/lib/actions/auth/login.js.map +1 -0
  15. package/lib/actions/auth/logout.d.ts +8 -0
  16. package/lib/actions/auth/logout.js +15 -0
  17. package/lib/actions/auth/logout.js.map +1 -0
  18. package/lib/actions/auth/status.d.ts +11 -0
  19. package/lib/actions/auth/status.js +26 -0
  20. package/lib/actions/auth/status.js.map +1 -0
  21. package/lib/actions/portal/copilot.d.ts +16 -0
  22. package/lib/actions/portal/copilot.js +89 -0
  23. package/lib/actions/portal/copilot.js.map +1 -0
  24. package/lib/actions/portal/generate.d.ts +11 -5
  25. package/lib/actions/portal/generate.js +60 -55
  26. package/lib/actions/portal/generate.js.map +1 -0
  27. package/lib/actions/portal/quickstart.d.ts +16 -0
  28. package/lib/actions/portal/quickstart.js +146 -0
  29. package/lib/actions/portal/quickstart.js.map +1 -0
  30. package/lib/actions/portal/recipe/new-recipe.d.ts +15 -0
  31. package/lib/actions/portal/recipe/new-recipe.js +177 -0
  32. package/lib/actions/portal/recipe/new-recipe.js.map +1 -0
  33. package/lib/actions/portal/serve.d.ts +15 -0
  34. package/lib/actions/portal/serve.js +118 -0
  35. package/lib/actions/portal/serve.js.map +1 -0
  36. package/lib/actions/portal/toc/new-toc.d.ts +17 -13
  37. package/lib/actions/portal/toc/new-toc.js +85 -122
  38. package/lib/actions/portal/toc/new-toc.js.map +1 -0
  39. package/lib/actions/quickstart.d.ts +10 -0
  40. package/lib/actions/quickstart.js +30 -0
  41. package/lib/actions/quickstart.js.map +1 -0
  42. package/lib/actions/sdk/generate.d.ts +13 -0
  43. package/lib/actions/sdk/generate.js +47 -0
  44. package/lib/actions/sdk/generate.js.map +1 -0
  45. package/lib/actions/sdk/quickstart.d.ts +14 -0
  46. package/lib/actions/sdk/quickstart.js +149 -0
  47. package/lib/actions/sdk/quickstart.js.map +1 -0
  48. package/lib/application/portal/recipe/portal-recipe.d.ts +8 -0
  49. package/lib/application/portal/recipe/portal-recipe.js +33 -0
  50. package/lib/application/portal/recipe/portal-recipe.js.map +1 -0
  51. package/lib/application/portal/recipe/recipe-generator.d.ts +21 -0
  52. package/lib/application/portal/recipe/recipe-generator.js +145 -0
  53. package/lib/application/portal/recipe/recipe-generator.js.map +1 -0
  54. package/lib/application/portal/toc/toc-content-parser.d.ts +1 -1
  55. package/lib/application/portal/toc/toc-content-parser.js +9 -11
  56. package/lib/application/portal/toc/toc-content-parser.js.map +1 -0
  57. package/lib/application/portal/toc/toc-structure-generator.d.ts +1 -1
  58. package/lib/application/portal/toc/toc-structure-generator.js +4 -8
  59. package/lib/application/portal/toc/toc-structure-generator.js.map +1 -0
  60. package/lib/client-utils/auth-manager.d.ts +7 -2
  61. package/lib/client-utils/auth-manager.js +26 -14
  62. package/lib/client-utils/auth-manager.js.map +1 -0
  63. package/lib/commands/api/transform.d.ts +10 -7
  64. package/lib/commands/api/transform.js +51 -111
  65. package/lib/commands/api/transform.js.map +1 -0
  66. package/lib/commands/api/validate.d.ts +7 -4
  67. package/lib/commands/api/validate.js +31 -74
  68. package/lib/commands/api/validate.js.map +1 -0
  69. package/lib/commands/auth/login.d.ts +3 -1
  70. package/lib/commands/auth/login.js +26 -68
  71. package/lib/commands/auth/login.js.map +1 -0
  72. package/lib/commands/auth/logout.d.ts +3 -1
  73. package/lib/commands/auth/logout.js +14 -21
  74. package/lib/commands/auth/logout.js.map +1 -0
  75. package/lib/commands/auth/status.d.ts +1 -0
  76. package/lib/commands/auth/status.js +18 -21
  77. package/lib/commands/auth/status.js.map +1 -0
  78. package/lib/commands/portal/copilot.d.ts +13 -0
  79. package/lib/commands/portal/copilot.js +34 -0
  80. package/lib/commands/portal/copilot.js.map +1 -0
  81. package/lib/commands/portal/generate.d.ts +7 -11
  82. package/lib/commands/portal/generate.js +26 -89
  83. package/lib/commands/portal/generate.js.map +1 -0
  84. package/lib/commands/portal/recipe/new.d.ts +12 -0
  85. package/lib/commands/portal/recipe/new.js +45 -0
  86. package/lib/commands/portal/recipe/new.js.map +1 -0
  87. package/lib/commands/portal/serve.d.ts +8 -8
  88. package/lib/commands/portal/serve.js +41 -125
  89. package/lib/commands/portal/serve.js.map +1 -0
  90. package/lib/commands/portal/toc/new.d.ts +5 -6
  91. package/lib/commands/portal/toc/new.js +45 -50
  92. package/lib/commands/portal/toc/new.js.map +1 -0
  93. package/lib/commands/quickstart.d.ts +9 -0
  94. package/lib/commands/quickstart.js +37 -0
  95. package/lib/commands/quickstart.js.map +1 -0
  96. package/lib/commands/sdk/generate.d.ts +10 -8
  97. package/lib/commands/sdk/generate.js +46 -131
  98. package/lib/commands/sdk/generate.js.map +1 -0
  99. package/lib/config/axios-config.js +4 -6
  100. package/lib/config/axios-config.js.map +1 -0
  101. package/lib/hooks/not-found.d.ts +3 -0
  102. package/lib/hooks/not-found.js +52 -0
  103. package/lib/hooks/not-found.js.map +1 -0
  104. package/lib/hooks/utils.d.ts +5 -0
  105. package/lib/hooks/utils.js +51 -0
  106. package/lib/hooks/utils.js.map +1 -0
  107. package/lib/index.js +2 -5
  108. package/lib/index.js.map +1 -0
  109. package/lib/infrastructure/debounce-service.d.ts +10 -0
  110. package/lib/infrastructure/debounce-service.js +52 -0
  111. package/lib/infrastructure/debounce-service.js.map +1 -0
  112. package/lib/infrastructure/env-info.d.ts +12 -0
  113. package/lib/infrastructure/env-info.js +58 -0
  114. package/lib/infrastructure/env-info.js.map +1 -0
  115. package/lib/infrastructure/file-service.d.ts +24 -0
  116. package/lib/infrastructure/file-service.js +120 -0
  117. package/lib/infrastructure/file-service.js.map +1 -0
  118. package/lib/infrastructure/launcher-service.d.ts +9 -0
  119. package/lib/infrastructure/launcher-service.js +72 -0
  120. package/lib/infrastructure/launcher-service.js.map +1 -0
  121. package/lib/infrastructure/network-service.d.ts +3 -0
  122. package/lib/infrastructure/network-service.js +7 -0
  123. package/lib/infrastructure/network-service.js.map +1 -0
  124. package/lib/infrastructure/service-error.d.ts +16 -0
  125. package/lib/infrastructure/service-error.js +49 -0
  126. package/lib/infrastructure/service-error.js.map +1 -0
  127. package/lib/infrastructure/services/api-client-factory.d.ts +6 -0
  128. package/lib/infrastructure/services/api-client-factory.js +20 -0
  129. package/lib/infrastructure/services/api-client-factory.js.map +1 -0
  130. package/lib/infrastructure/services/api-service.d.ts +12 -0
  131. package/lib/infrastructure/services/api-service.js +79 -0
  132. package/lib/infrastructure/services/api-service.js.map +1 -0
  133. package/lib/infrastructure/services/auth-service.d.ts +11 -0
  134. package/lib/infrastructure/services/auth-service.js +37 -0
  135. package/lib/infrastructure/services/auth-service.js.map +1 -0
  136. package/lib/infrastructure/services/file-download-service.d.ts +15 -0
  137. package/lib/infrastructure/services/file-download-service.js +104 -0
  138. package/lib/infrastructure/services/file-download-service.js.map +1 -0
  139. package/lib/infrastructure/services/portal-service.d.ts +17 -12
  140. package/lib/infrastructure/services/portal-service.js +134 -99
  141. package/lib/infrastructure/services/portal-service.js.map +1 -0
  142. package/lib/infrastructure/services/telemetry-service.d.ts +9 -0
  143. package/lib/infrastructure/services/telemetry-service.js +38 -0
  144. package/lib/infrastructure/services/telemetry-service.js.map +1 -0
  145. package/lib/infrastructure/services/transformation-service.d.ts +23 -0
  146. package/lib/infrastructure/services/transformation-service.js +56 -0
  147. package/lib/infrastructure/services/transformation-service.js.map +1 -0
  148. package/lib/infrastructure/services/validation-service.d.ts +17 -0
  149. package/lib/infrastructure/services/validation-service.js +49 -0
  150. package/lib/infrastructure/services/validation-service.js.map +1 -0
  151. package/lib/infrastructure/tmp-extensions.d.ts +2 -0
  152. package/lib/infrastructure/tmp-extensions.js +6 -0
  153. package/lib/infrastructure/tmp-extensions.js.map +1 -0
  154. package/lib/infrastructure/zip-service.d.ts +6 -0
  155. package/lib/infrastructure/zip-service.js +39 -0
  156. package/lib/infrastructure/zip-service.js.map +1 -0
  157. package/lib/prompts/api/transform.d.ts +11 -0
  158. package/lib/prompts/api/transform.js +29 -0
  159. package/lib/prompts/api/transform.js.map +1 -0
  160. package/lib/prompts/api/validate.d.ts +12 -0
  161. package/lib/prompts/api/validate.js +40 -0
  162. package/lib/prompts/api/validate.js.map +1 -0
  163. package/lib/prompts/auth/login.d.ts +10 -0
  164. package/lib/prompts/auth/login.js +22 -0
  165. package/lib/prompts/auth/login.js.map +1 -0
  166. package/lib/prompts/auth/logout.d.ts +3 -0
  167. package/lib/prompts/auth/logout.js +7 -0
  168. package/lib/prompts/auth/logout.js.map +1 -0
  169. package/lib/prompts/auth/status.d.ts +8 -0
  170. package/lib/prompts/auth/status.js +22 -0
  171. package/lib/prompts/auth/status.js.map +1 -0
  172. package/lib/prompts/format.d.ts +31 -0
  173. package/lib/prompts/format.js +89 -0
  174. package/lib/prompts/format.js.map +1 -0
  175. package/lib/prompts/portal/copilot.d.ts +18 -0
  176. package/lib/prompts/portal/copilot.js +82 -0
  177. package/lib/prompts/portal/copilot.js.map +1 -0
  178. package/lib/prompts/portal/generate.d.ts +13 -8
  179. package/lib/prompts/portal/generate.js +36 -53
  180. package/lib/prompts/portal/generate.js.map +1 -0
  181. package/lib/prompts/portal/quickstart.d.ts +28 -29
  182. package/lib/prompts/portal/quickstart.js +102 -185
  183. package/lib/prompts/portal/quickstart.js.map +1 -0
  184. package/lib/prompts/portal/recipe/new-recipe.d.ts +29 -0
  185. package/lib/prompts/portal/recipe/new-recipe.js +165 -0
  186. package/lib/prompts/portal/recipe/new-recipe.js.map +1 -0
  187. package/lib/prompts/portal/serve.d.ts +9 -5
  188. package/lib/prompts/portal/serve.js +29 -19
  189. package/lib/prompts/portal/serve.js.map +1 -0
  190. package/lib/prompts/portal/toc/new-toc.d.ts +13 -8
  191. package/lib/prompts/portal/toc/new-toc.js +28 -36
  192. package/lib/prompts/portal/toc/new-toc.js.map +1 -0
  193. package/lib/prompts/prompt.d.ts +3 -0
  194. package/lib/prompts/prompt.js +37 -0
  195. package/lib/prompts/prompt.js.map +1 -0
  196. package/lib/prompts/quickstart.d.ts +6 -0
  197. package/lib/prompts/quickstart.js +25 -0
  198. package/lib/prompts/quickstart.js.map +1 -0
  199. package/lib/prompts/sdk/generate.d.ts +11 -0
  200. package/lib/prompts/sdk/generate.js +37 -0
  201. package/lib/prompts/sdk/generate.js.map +1 -0
  202. package/lib/prompts/sdk/quickstart.d.ts +32 -0
  203. package/lib/prompts/sdk/quickstart.js +140 -0
  204. package/lib/prompts/sdk/quickstart.js.map +1 -0
  205. package/lib/types/api/account.d.ts +10 -0
  206. package/lib/types/api/account.js +2 -0
  207. package/lib/types/api/account.js.map +1 -0
  208. package/lib/types/api/transform.d.ts +14 -25
  209. package/lib/types/api/transform.js +20 -23
  210. package/lib/types/api/transform.js.map +1 -0
  211. package/lib/types/build/build.d.ts +22 -0
  212. package/lib/types/build/build.js +7 -0
  213. package/lib/types/build/build.js.map +1 -0
  214. package/lib/types/build-context.d.ts +13 -0
  215. package/lib/types/build-context.js +33 -0
  216. package/lib/types/build-context.js.map +1 -0
  217. package/lib/types/common/command-metadata.d.ts +4 -0
  218. package/lib/types/common/command-metadata.js +2 -0
  219. package/lib/types/common/command-metadata.js.map +1 -0
  220. package/lib/types/events/domain-event.d.ts +8 -0
  221. package/lib/types/events/domain-event.js +11 -0
  222. package/lib/types/events/domain-event.js.map +1 -0
  223. package/lib/types/events/quickstart-completed.d.ts +7 -0
  224. package/lib/types/events/quickstart-completed.js +10 -0
  225. package/lib/types/events/quickstart-completed.js.map +1 -0
  226. package/lib/types/events/quickstart-initiated.d.ts +7 -0
  227. package/lib/types/events/quickstart-initiated.js +10 -0
  228. package/lib/types/events/quickstart-initiated.js.map +1 -0
  229. package/lib/types/events/recipe-creation-failed.d.ts +5 -0
  230. package/lib/types/events/recipe-creation-failed.js +8 -0
  231. package/lib/types/events/recipe-creation-failed.js.map +1 -0
  232. package/lib/types/events/toc-creation-failed.d.ts +5 -0
  233. package/lib/types/events/toc-creation-failed.js +8 -0
  234. package/lib/types/events/toc-creation-failed.js.map +1 -0
  235. package/lib/types/file/directory.d.ts +17 -0
  236. package/lib/types/file/directory.js +87 -0
  237. package/lib/types/file/directory.js.map +1 -0
  238. package/lib/types/file/directoryPath.d.ts +10 -0
  239. package/lib/types/file/directoryPath.js +26 -0
  240. package/lib/types/file/directoryPath.js.map +1 -0
  241. package/lib/types/file/fileName.d.ts +7 -0
  242. package/lib/types/file/fileName.js +21 -0
  243. package/lib/types/file/fileName.js.map +1 -0
  244. package/lib/types/file/filePath.d.ts +10 -0
  245. package/lib/types/file/filePath.js +32 -0
  246. package/lib/types/file/filePath.js.map +1 -0
  247. package/lib/types/file/resource-input.d.ts +5 -0
  248. package/lib/types/file/resource-input.js +42 -0
  249. package/lib/types/file/resource-input.js.map +1 -0
  250. package/lib/types/file/urlPath.d.ts +6 -0
  251. package/lib/types/file/urlPath.js +22 -0
  252. package/lib/types/file/urlPath.js.map +1 -0
  253. package/lib/types/flags-provider.d.ts +15 -0
  254. package/lib/types/flags-provider.js +34 -0
  255. package/lib/types/flags-provider.js.map +1 -0
  256. package/lib/types/portal-context.d.ts +13 -0
  257. package/lib/types/portal-context.js +38 -0
  258. package/lib/types/portal-context.js.map +1 -0
  259. package/lib/types/recipe/recipe.d.ts +22 -0
  260. package/lib/types/recipe/recipe.js +6 -0
  261. package/lib/types/recipe/recipe.js.map +1 -0
  262. package/lib/types/recipe-context.d.ts +9 -0
  263. package/lib/types/recipe-context.js +26 -0
  264. package/lib/types/recipe-context.js.map +1 -0
  265. package/lib/types/resource-context.d.ts +12 -0
  266. package/lib/types/resource-context.js +30 -0
  267. package/lib/types/resource-context.js.map +1 -0
  268. package/lib/types/sdk/generate.d.ts +9 -22
  269. package/lib/types/sdk/generate.js +25 -14
  270. package/lib/types/sdk/generate.js.map +1 -0
  271. package/lib/types/sdk-context.d.ts +14 -0
  272. package/lib/types/sdk-context.js +32 -0
  273. package/lib/types/sdk-context.js.map +1 -0
  274. package/lib/types/sdl/sdl.d.ts +10 -0
  275. package/lib/types/sdl/sdl.js +47 -3
  276. package/lib/types/sdl/sdl.js.map +1 -0
  277. package/lib/types/spec-context.d.ts +12 -0
  278. package/lib/types/spec-context.js +29 -0
  279. package/lib/types/spec-context.js.map +1 -0
  280. package/lib/types/temp-context.d.ts +11 -0
  281. package/lib/types/temp-context.js +27 -0
  282. package/lib/types/temp-context.js.map +1 -0
  283. package/lib/types/toc/toc.js +2 -10
  284. package/lib/types/toc/toc.js.map +1 -0
  285. package/lib/types/toc-context.d.ts +12 -0
  286. package/lib/types/toc-context.js +26 -0
  287. package/lib/types/toc-context.js.map +1 -0
  288. package/lib/types/transform-context.d.ts +13 -0
  289. package/lib/types/transform-context.js +30 -0
  290. package/lib/types/transform-context.js.map +1 -0
  291. package/lib/types/utils.d.ts +0 -9
  292. package/lib/types/utils.js +2 -3
  293. package/lib/types/utils.js.map +1 -0
  294. package/lib/utils/string-utils.d.ts +2 -0
  295. package/lib/utils/string-utils.js +37 -0
  296. package/lib/utils/string-utils.js.map +1 -0
  297. package/lib/utils/utils.d.ts +2 -44
  298. package/lib/utils/utils.js +14 -366
  299. package/lib/utils/utils.js.map +1 -0
  300. package/package.json +50 -31
  301. package/bin/run +0 -9
  302. package/lib/application/portal/toc/sdl-parser.d.ts +0 -13
  303. package/lib/application/portal/toc/sdl-parser.js +0 -53
  304. package/lib/client-utils/sdk-client.d.ts +0 -23
  305. package/lib/client-utils/sdk-client.js +0 -124
  306. package/lib/commands/portal/quickstart.d.ts +0 -10
  307. package/lib/commands/portal/quickstart.js +0 -79
  308. package/lib/config/env.d.ts +0 -27
  309. package/lib/config/env.js +0 -31
  310. package/lib/controllers/api/transform.d.ts +0 -5
  311. package/lib/controllers/api/transform.js +0 -56
  312. package/lib/controllers/api/validate.d.ts +0 -3
  313. package/lib/controllers/api/validate.js +0 -33
  314. package/lib/controllers/portal/generate.d.ts +0 -3
  315. package/lib/controllers/portal/generate.js +0 -110
  316. package/lib/controllers/portal/quickstart.d.ts +0 -14
  317. package/lib/controllers/portal/quickstart.js +0 -258
  318. package/lib/controllers/portal/serve.d.ts +0 -3
  319. package/lib/controllers/portal/serve.js +0 -138
  320. package/lib/controllers/sdk/generate.d.ts +0 -4
  321. package/lib/controllers/sdk/generate.js +0 -66
  322. package/lib/services/portal/server.d.ts +0 -14
  323. package/lib/services/portal/server.js +0 -101
  324. package/lib/types/api/validate.d.ts +0 -12
  325. package/lib/types/api/validate.js +0 -3
  326. package/lib/types/common/result.d.ts +0 -17
  327. package/lib/types/common/result.js +0 -36
  328. package/lib/types/portal/generate.d.ts +0 -26
  329. package/lib/types/portal/generate.js +0 -4
  330. package/lib/types/portal/quickstart.d.ts +0 -17
  331. package/lib/types/portal/quickstart.js +0 -3
  332. package/lib/validators/common/directoryValidator.d.ts +0 -9
  333. package/lib/validators/common/directoryValidator.js +0 -53
  334. package/lib/validators/common/portValidator.d.ts +0 -5
  335. package/lib/validators/common/portValidator.js +0 -20
  336. package/lib/validators/portal/serveValidator.d.ts +0 -6
  337. package/lib/validators/portal/serveValidator.js +0 -21
package/README.md CHANGED
@@ -1,374 +1,436 @@
1
- @apimatic/cli
2
- =============
3
- apimatic is in Alpha.
4
-
5
- The official CLI for APIMatic.
6
-
7
- [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
8
- [![Version](https://img.shields.io/npm/v/@apimatic/cli.svg)](https://npmjs.org/package/@apimatic/cli)
9
- [![Downloads/week](https://img.shields.io/npm/dw/@apimatic/cli.svg)](https://npmjs.org/package/@apimatic/cli)
10
- [![License](https://img.shields.io/npm/l/@apimatic/cli.svg)](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 portal: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-alpha.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-apitransform)
38
- * [`apimatic api:validate`](#apimatic-apivalidate)
39
- * [`apimatic auth:login`](#apimatic-authlogin)
40
- * [`apimatic auth:logout`](#apimatic-authlogout)
41
- * [`apimatic auth:status`](#apimatic-authstatus)
42
- * [`apimatic autocomplete [SHELL]`](#apimatic-autocomplete-shell)
43
- * [`apimatic help [COMMAND]`](#apimatic-help-command)
44
- * [`apimatic portal:generate`](#apimatic-portalgenerate)
45
- * [`apimatic portal:toc:new`](#apimatic-portaltocnew)
46
- * [`apimatic portal:quickstart`](#apimatic-portalquickstart)
47
- * [`apimatic portal:serve`](#apimatic-portalserve)
48
- * [`apimatic sdk:generate`](#apimatic-sdkgenerate)
49
-
50
- ## `apimatic api:transform`
51
-
52
- 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.
53
-
54
- ```
55
- USAGE
56
- $ apimatic api:transform --format <value> [--file <value>] [--url <value>] [--destination <value>] [-f]
57
- [--auth-key <value>]
58
-
59
- FLAGS
60
- -f, --force overwrite if same file exist in the destination
61
- --auth-key=<value> override current authentication state with an authentication key
62
- --destination=<value> [default: ./] directory to download transformed file to
63
- --file=<value> path to the API specification file to transform
64
- --format=<value> (required) specification format to transform API specification into
65
- APIMATIC|WADL2009|WSDL|SWAGGER10|SWAGGER20|SWAGGERYAML|OAS3|OPENAPI3YAML|APIBLUEPRINT|RAML|
66
- RAML10|POSTMAN10|POSTMAN20|GRAPHQLSCHEMA
67
- --url=<value> URL to the API specification file to transform. Can be used in place of the --file option
68
- if the API specification is publicly available.
69
-
70
- DESCRIPTION
71
- Transform API specifications from one format to another. Supports [10+ different
72
- formats](https://www.apimatic.io/transformer/#supported-formats) including OpenApi/Swagger, RAML, WSDL and Postman
73
- Collections.
74
-
75
- EXAMPLES
76
- $ apimatic api:transform --format="OpenApi3Json" --file="./specs/sample.json" --destination="D:/"
77
- Success! Your transformed file is located at D:/Transformed_OpenApi3Json.json
78
-
79
- $ apimatic api:transform --format=RAML --url="https://petstore.swagger.io/v2/swagger.json" --destination="D:/"
80
- Success! Your transformed file is located at D:/swagger_raml.yaml
81
- ```
82
-
83
- _See code: [src/commands/api/transform.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/api/transform.ts)_
84
-
85
- ## `apimatic api:validate`
86
-
87
- Validate the syntactic and semantic correctness of an API specification
88
-
89
- ```
90
- USAGE
91
- $ apimatic api:validate [--file <value>] [--url <value>] [--auth-key <value>]
92
-
93
- FLAGS
94
- --auth-key=<value> override current authentication state with an authentication key
95
- --file=<value> Path to the API specification file to validate
96
- --url=<value> URL to the specification file to validate. Can be used in place of the --file option if the API
97
- specification is publicly available.
98
-
99
- DESCRIPTION
100
- Validate the syntactic and semantic correctness of an API specification
101
-
102
- EXAMPLES
103
- $ apimatic api:validate --file="./specs/sample.json"
104
- Specification file provided is valid
105
-
106
- $ apimatic api:validate --url=https://petstore.swagger.io/v2/swagger.json
107
- Specification file provided is valid
108
- ```
109
-
110
- _See code: [src/commands/api/validate.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/api/validate.ts)_
111
-
112
- ## `apimatic auth:login`
113
-
114
- Login using your APIMatic credentials or an API Key
115
-
116
- ```
117
- USAGE
118
- $ apimatic auth:login [--auth-key <value>]
119
-
120
- FLAGS
121
- --auth-key=<value> Set authentication key for all commands
122
-
123
- DESCRIPTION
124
- Login using your APIMatic credentials or an API Key
125
-
126
- EXAMPLES
127
- $ apimatic auth:login
128
- Enter your registered email: apimatic-user@gmail.com
129
- Please enter your password: *********
130
- You have successfully logged into APIMatic
131
-
132
- $ apimatic auth:login --auth-key=xxxxxx
133
- Authentication key successfully set
134
- ```
135
-
136
- _See code: [src/commands/auth/login.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/auth/login.ts)_
137
-
138
- ## `apimatic auth:logout`
139
-
140
- Clear local login credentials
141
-
142
- ```
143
- USAGE
144
- $ apimatic auth:logout
145
-
146
- DESCRIPTION
147
- Clear local login credentials
148
-
149
- EXAMPLES
150
- $ apimatic auth:logout
151
- Logged out
152
- ```
153
-
154
- _See code: [src/commands/auth/logout.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/auth/logout.ts)_
155
-
156
- ## `apimatic auth:status`
157
-
158
- View current authentication state
159
-
160
- ```
161
- USAGE
162
- $ apimatic auth:status
163
-
164
- DESCRIPTION
165
- View current authentication state
166
-
167
- EXAMPLES
168
- $ apimatic auth:status
169
- Currently logged in as apimatic-client@gmail.com
170
- ```
171
-
172
- _See code: [src/commands/auth/status.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/auth/status.ts)_
173
-
174
- ## `apimatic autocomplete [SHELL]`
175
-
176
- Display autocomplete installation instructions.
177
-
178
- ```
179
- USAGE
180
- $ apimatic autocomplete [SHELL] [-r]
181
-
182
- ARGUMENTS
183
- SHELL shell type
184
-
185
- FLAGS
186
- -r, --refresh-cache Refresh cache (ignores displaying instructions)
187
-
188
- DESCRIPTION
189
- Display autocomplete installation instructions.
190
-
191
- EXAMPLES
192
- $ apimatic autocomplete
193
- $ apimatic autocomplete bash
194
- $ apimatic autocomplete zsh
195
- $ apimatic autocomplete --refresh-cache
196
- ```
197
-
198
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/main/src/commands/autocomplete/index.ts)_
199
-
200
- ## `apimatic help [COMMAND]`
201
-
202
- Display help for apimatic.
203
-
204
- ```
205
- USAGE
206
- $ apimatic help [COMMAND...] [-n]
207
-
208
- ARGUMENTS
209
- COMMAND... Command to show help for.
210
-
211
- FLAGS
212
- -n, --nested-commands Include all nested commands in the output.
213
-
214
- DESCRIPTION
215
- Display help for apimatic.
216
- ```
217
-
218
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/main/src/commands/help.ts)_
219
-
220
- ## `apimatic portal:generate`
221
-
222
- 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://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference)
223
-
224
- ```
225
- USAGE
226
- $ apimatic portal:generate [--folder <value>] [--destination <value>] [-f] [--zip] [--auth-key <value>]
227
-
228
- FLAGS
229
- -f, --force overwrite if a portal exists in the destination
230
- --auth-key=<value> override current authentication state with an authentication key
231
- --destination=<value> [default: ./generated_portal] path to the downloaded portal
232
- --folder=<value> [default: ./] path to the input directory containing API specifications and config files
233
- --zip download the generated portal as a .zip archive
234
-
235
- DESCRIPTION
236
- Generate and download a static API Documentation portal. Requires an input directory containing API specifications, a
237
- config file and optionally, markdown guides. For details, refer to the [documentation](https://docs.apimatic.io/platfo
238
- rm-api/#/http/guides/generating-on-prem-api-portal/build-file-reference)
239
-
240
- EXAMPLES
241
- $ apimatic portal:generate --folder="./portal/" --destination="D:/"
242
- Your portal has been generated at D:/
243
- ```
244
-
245
- _See code: [src/commands/portal/generate.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/portal/generate.ts)_
246
-
247
- ## `apimatic portal:toc:new`
248
-
249
- Generates a TOC file based on the content directory and spec folder provided in your working directory
250
-
251
- ```
252
- USAGE
253
- $ apimatic portal:toc:new [--destination <value>] [--folder <value>] [--force] [--expand-endpoints]
254
- [--expand-models]
255
-
256
- FLAGS
257
- --destination=<value> optional path where the generated TOC file will be saved. Defaults to the current working
258
- directory if not provided.
259
- --expand-endpoints include individual entries for each endpoint in the generated TOC. Requires a valid API
260
- specification in the working directory.
261
- --expand-models include individual entries for each model in the generated TOC. Requires a valid API
262
- specification in the working directory.
263
- --folder=<value> [default: ./] path to the working directory containing the API project
264
- files. Defaults to the current working directory if not specified.
265
- --force overwrite the TOC file if one already exists at the destination.
266
-
267
- DESCRIPTION
268
- Generates a TOC file based on the content directory and spec folder provided in your working directory
269
-
270
- This command generates a new Table of Contents (TOC) file used in the
271
- generation of your API documentation portal.
272
-
273
- The output is a YAML file with the .yml extension.
274
-
275
- To learn more about the TOC file and APIMatic build directory structure, visit:
276
- https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/overview-generating-api-portal
277
-
278
- EXAMPLES
279
- $ apimatic portal:toc:new --destination="./portal/content/"
280
- A new toc file has been created at ./portal/content/toc.yml
281
-
282
- $ apimatic portal:toc:new --folder="./my-project"
283
- A new toc file has been created at ./my-project/content/toc.yml
284
-
285
- $ apimatic portal:toc:new --folder="./my-project" --destination="./portal/content/"
286
- A new toc file has been created at ./portal/content/toc.yml
287
- ```
288
-
289
- _See code: [src/commands/portal/toc/new/toc.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/portal/toc/new/toc.ts)_
290
-
291
- ## `apimatic portal:quickstart`
292
-
293
- Create your first API Portal using APIMatic's Docs as Code offering.
294
-
295
- ```
296
- USAGE
297
- $ apimatic portal:quickstart
298
-
299
- DESCRIPTION
300
- Create your first API Portal using APIMatic's Docs as Code offering.
301
-
302
- EXAMPLES
303
- $ apimatic portal:quickstart
304
- ```
305
-
306
- _See code: [src/commands/portal/quickstart.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/portal/quickstart.ts)_
307
-
308
- ## `apimatic portal:serve`
309
-
310
- Generate and deploy a Docs as Code portal with hot reload.
311
-
312
- ```
313
- USAGE
314
- $ apimatic portal:serve [-p <value>] [-d <value>] [-s <value>] [-o] [--no-reload] [-i <value>] [--auth-key
315
- <value>]
316
-
317
- FLAGS
318
- -d, --destination=<value> [default: ./generated_portal] Directory to store and serve the generated portal.
319
- -i, --ignore=<value> Comma-separated list of files/directories to ignore.
320
- -o, --open Open the portal in the default browser.
321
- -p, --port=<value> [default: 3000] Port to serve the portal.
322
- -s, --source=<value> [default: ./] Source directory containing specs, content, and build file. By default, the
323
- current directory is used.
324
- --auth-key=<value> Override current authentication state with an authentication key.
325
- --no-reload Disable hot reload.
326
-
327
- DESCRIPTION
328
- Generate and deploy a Docs as Code portal with hot reload.
329
-
330
- EXAMPLES
331
- $ apimatic portal:serve --source="./" --destination="./generated_portal" --port=3000 --open --no-reload
332
- ```
333
-
334
- _See code: [src/commands/portal/serve.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/portal/serve.ts)_
335
-
336
- ## `apimatic sdk:generate`
337
-
338
- Generate SDK for your APIs
339
-
340
- ```
341
- USAGE
342
- $ apimatic sdk:generate --platform <value> [--file <value>] [--url <value>] [--destination <value>] [-f] [--zip]
343
- [--auth-key <value>]
344
-
345
- FLAGS
346
- -f, --force overwrite if an SDK already exists in the destination
347
- --auth-key=<value> override current authentication state with an authentication key
348
- --destination=<value> [default: ./] directory to download the generated SDK to
349
- --file=<value> path to the API specification to generate SDKs for
350
- --platform=<value> (required) language platform for sdk
351
- Simple: CSHARP|JAVA|PYTHON|RUBY|PHP|TYPESCRIPT|GO
352
- Legacy: CS_NET_STANDARD_LIB|JAVA_ECLIPSE_JRE_LIB|PHP_GENERIC_LIB_V2|PYTHON_GENERIC_LIB|RUBY
353
- _GENERIC_LIB|TS_GENERIC_LIB|GO_GENERIC_LIB
354
- --url=<value> URL to the API specification to generate SDKs for. Can be used in place of the --file
355
- option if the API specification is publicly available.
356
- --zip download the generated SDK as a .zip archive
357
-
358
- DESCRIPTION
359
- Generate SDK for your APIs
360
-
361
- EXAMPLES
362
- $ apimatic sdk:generate --platform="CSHARP" --file="./specs/sample.json"
363
- Generating SDK... done
364
- Downloading SDK... done
365
- Success! Your SDK is located at swagger_sdk_csharp
366
-
367
- $ apimatic sdk:generate --platform="CSHARP" --url=https://petstore.swagger.io/v2/swagger.json
368
- Generating SDK... done
369
- Downloading SDK... done
370
- Success! Your SDK is located at swagger_sdk_csharp
371
- ```
372
-
373
- _See code: [src/commands/sdk/generate.ts](https://github.com/apimatic/apimatic-cli/blob/alpha/src/commands/sdk/generate.ts)_
374
- <!-- commandsstop -->
1
+ @apimatic/cli
2
+ =============
3
+ apimatic is in beta.
4
+
5
+ The official CLI for APIMatic.
6
+
7
+ [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
8
+ [![Version](https://img.shields.io/npm/v/@apimatic/cli.svg)](https://npmjs.org/package/@apimatic/cli)
9
+ [![Downloads/week](https://img.shields.io/npm/dw/@apimatic/cli.svg)](https://npmjs.org/package/@apimatic/cli)
10
+ [![License](https://img.shields.io/npm/l/@apimatic/cli.svg)](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.0.0-beta.1 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
+
353
+ FLAGS
354
+ -d, --destination=<value> [default: <input>/src/content] path where the toc.yml will be generated.
355
+ -f, --force overwrite changes without asking for user consent.
356
+ -i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
357
+ API specifications and configuration files.
358
+ --expand-endpoints include individual entries for each endpoint in the generated 'toc.yml'. Requires a valid
359
+ API specification in the working directory.
360
+ --expand-models include individual entries for each model in the generated 'toc.yml'. Requires a valid API
361
+ specification in the working directory.
362
+
363
+ DESCRIPTION
364
+ Generate a Table of Contents (TOC) file for your API documentation portal
365
+
366
+ This command generates a new Table of Contents (TOC) file used in the
367
+ generation of your API documentation portal.
368
+
369
+ The output is a YAML file with the .yml extension.
370
+
371
+ To learn more about the TOC file and APIMatic build directory structure, visit:
372
+ https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/overview-generating-api-portal
373
+
374
+ EXAMPLES
375
+ apimatic portal toc new --destination=./src/content/
376
+
377
+ apimatic portal toc new --input=./
378
+
379
+ apimatic portal toc new --input=./ --destination=./src/content/
380
+ ```
381
+
382
+ _See code: [src/commands/portal/toc/new.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/portal/toc/new.ts)_
383
+
384
+ ## `apimatic quickstart`
385
+
386
+ Create your first SDK or API Portal using APIMatic.
387
+
388
+ ```
389
+ USAGE
390
+ $ apimatic quickstart
391
+
392
+ DESCRIPTION
393
+ Create your first SDK or API Portal using APIMatic.
394
+
395
+ Get started with your first SDK or API Portal in four easy steps.
396
+
397
+ EXAMPLES
398
+ apimatic quickstart
399
+ ```
400
+
401
+ _See code: [src/commands/quickstart.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/quickstart.ts)_
402
+
403
+ ## `apimatic sdk generate`
404
+
405
+ Generate an SDK for your API
406
+
407
+ ```
408
+ USAGE
409
+ $ apimatic sdk generate -l csharp|java|php|python|ruby|typescript|go [--spec <value>] [-d <value>] [-f] [--zip]
410
+ [-k <value>]
411
+
412
+ FLAGS
413
+ -d, --destination=<value> directory where the SDK will be generated
414
+ -f, --force overwrite changes without asking for user consent.
415
+ -k, --auth-key=<value> override current authentication state with an authentication key.
416
+ -l, --language=<option> (required) programming language for SDK generation
417
+ <options: csharp|java|php|python|ruby|typescript|go>
418
+ --spec=<value> [default: ./src/spec] path to the folder containing the API specification file
419
+ --zip download the generated SDK as a .zip archive
420
+
421
+ DESCRIPTION
422
+ Generate an SDK for your API
423
+
424
+ Generate Software Development Kits (SDKs) from API specifications.
425
+ Supports multiple programming languages including Java, C#, Python, JavaScript, and more.
426
+
427
+ EXAMPLES
428
+ apimatic sdk generate --language=java
429
+
430
+ apimatic sdk generate --language=csharp --spec=./src/spec
431
+
432
+ apimatic sdk generate --language=python --destination=./sdk --zip
433
+ ```
434
+
435
+ _See code: [src/commands/sdk/generate.ts](https://github.com/apimatic/apimatic-cli/blob/beta/src/commands/sdk/generate.ts)_
436
+ <!-- commandsstop -->