@scalar/cli 1.8.5 → 1.8.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.
Files changed (4) hide show
  1. package/README.md +17 -1
  2. package/docs.html +100 -66
  3. package/index.js +612 -464
  4. package/package.json +17 -16
package/README.md CHANGED
@@ -61,7 +61,7 @@ Usage: scalar [options] [command]
61
61
  CLI to work with your OpenAPI files
62
62
 
63
63
  Options:
64
- -V, --version output the version number
64
+ -v, --version output the version number
65
65
  -h, --help display help for command
66
66
 
67
67
  Commands:
@@ -174,6 +174,7 @@ Commands:
174
174
  split [options] [file|url] Split your OpenAPI documents on small chunks
175
175
  join [options] <files...> Merge multiple OpenAPI documents into a single unified document
176
176
  format [options] [file|url] Format an OpenAPI file
177
+ convert [options] [file|url] Convert a Postman collection to an OpenAPI document
177
178
  markdown [options] [file|url] Generate Markdown from an OpenAPI file
178
179
  mock [options] [file|url] Mock an API from an OpenAPI file
179
180
  serve [options] [file|url] Serve an API Reference from an OpenAPI file
@@ -245,6 +246,21 @@ Options:
245
246
  -h, --help display help for command
246
247
  ```
247
248
 
249
+ #### convert
250
+ ```
251
+ Usage: scalar document convert [options] [file|url]
252
+
253
+ Convert a Postman collection to an OpenAPI document
254
+
255
+ Arguments:
256
+ file|url Postman collection file path or URL to convert
257
+
258
+ Options:
259
+ -o, --output <file> Output file (defaults to stdout)
260
+ --merge-operations Merge operations with shared path+method combinations
261
+ -h, --help display help for command
262
+ ```
263
+
248
264
  #### markdown
249
265
  ```
250
266
  Usage: scalar document markdown [options] [file|url]