@scalar/cli 1.9.9 → 2.0.1

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 +26 -8
  2. package/docs.html +233 -126
  3. package/index.js +765 -437
  4. package/package.json +14 -14
package/README.md CHANGED
@@ -170,7 +170,7 @@ Options:
170
170
  -h, --help display help for command
171
171
 
172
172
  Commands:
173
- bundle [options] [file|url] Bundle an OpenAPI specification by resolving all references and external dependencies
173
+ bundle [options] [file|url] Bundle an OpenAPI document by resolving all references and external dependencies
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
@@ -190,7 +190,7 @@ Commands:
190
190
  ```
191
191
  Usage: scalar document bundle [options] [file|url]
192
192
 
193
- Bundle an OpenAPI specification by resolving all references and external dependencies
193
+ Bundle an OpenAPI document by resolving all references and external dependencies
194
194
 
195
195
  Arguments:
196
196
  file|url Path to OpenAPI file or URL to bundle
@@ -698,14 +698,15 @@ Usage: scalar schema [options] [command]
698
698
  Manage your Scalar schemas
699
699
 
700
700
  Options:
701
- -h, --help display help for command
701
+ -h, --help display help for command
702
702
 
703
703
  Commands:
704
- delete [options] Delete a schema.
705
- update [options] Update schema metadata.
706
- list [options] List all schemas for a team namespace
707
- publish [options] [file] Publish a shared schema to the Scalar registry
708
- help [command] display help for command
704
+ delete [options] Delete a schema.
705
+ update [options] Update schema metadata.
706
+ list [options] List all schemas for a team namespace
707
+ get [options] [namespace] [slug] Get a schema document version from the Scalar registry
708
+ publish [options] [file] Publish a shared schema to the Scalar registry
709
+ help [command] display help for command
709
710
  ```
710
711
 
711
712
  #### delete
@@ -746,6 +747,23 @@ Options:
746
747
  -h, --help display help for command
747
748
  ```
748
749
 
750
+ #### get
751
+ ```
752
+ Usage: scalar schema get [options] [namespace] [slug]
753
+
754
+ Get a schema document version from the Scalar registry
755
+
756
+ Arguments:
757
+ namespace Team namespace
758
+ slug Schema slug
759
+
760
+ Options:
761
+ --version <version> Schema version (defaults to latest)
762
+ --format <format> Output format (json or yaml) (default: "json")
763
+ -o, --output <file> Output file (defaults to stdout)
764
+ -h, --help display help for command
765
+ ```
766
+
749
767
  #### publish
750
768
  ```
751
769
  Usage: scalar schema publish [options] [file]