Usage: scalar [options] [command]CLI to work with your OpenAPI filesOptions: -V, --version output the version number -h, --help display help for commandCommands: readme Open documentation for the CLI upgrade Upgrade current version of your cli auth Manage authorization on scalar platform document Manage local openapi file project Manage scalar project registry Manage your scalar registry team Manage user teams sdk Manage your Scalar SDKs (Enterprise Only) schema Manage your Scalar schemas help [command] display help for command
readme
Usage: scalar readme [options] [command]Open documentation for the CLIOptions: -h, --help display help for commandCommands: generate [options] Self generate documentation for the cli
generate
Usage: scalar readme generate [options]Self generate documentation for the cliOptions: -o, --output [file] Path where the documentation file will be written -h, --help display help for command
upgrade
Usage: scalar upgrade [options]Upgrade current version of your cliOptions: -h, --help display help for command
auth
Usage: scalar auth [options] [command]Manage authorization on scalar platformOptions: -h, --help display help for commandCommands: login [options] Login to scalar whoami Display the current user logout Logout from scalar help [command] display help for command
login
Usage: scalar auth login [options]Login to scalarOptions: --email <email> Email --password <password> Password --token <token> Personal token -h, --help display help for command
whoami
Usage: scalar auth whoami [options]Display the current userOptions: -h, --help display help for command
logout
Usage: scalar auth logout [options]Logout from scalarOptions: -h, --help display help for command
document
Usage: scalar document [options] [command]Manage local openapi fileOptions: -h, --help display help for commandCommands: bundle [options] [file|url] Bundle an OpenAPI specification by resolving all references and external dependencies split [options] [file|url] Split your OpenAPI documents on small chunks format [options] [file|url] Format an OpenAPI file mock [options] [file|url] Mock an API from an OpenAPI file serve [options] [file|url] Serve an API Reference from an OpenAPI file share [options] [file] Share an OpenAPI file validate [file|url] Validate an OpenAPI file void [options] Boot a server to mirror HTTP requests lint [options] [file|url] Lint your OpenAPI file using spectral rules upgrade [options] [file|url] Upgrade OpenAPI document to version 3.1 help [command] display help for command
bundle
Usage: scalar document bundle [options] [file|url]Bundle an OpenAPI specification by resolving all references and externaldependenciesArguments: file|url Path to OpenAPI file or URL to bundleOptions: -o, --output <file> Path to save the bundled output file --treeShake Remove unused components from the bundled output --urlMap Generate a map of resolved URLs in the bundled output --fetchLimit <limit> Maximum number of URLs to fetch during bundling at the same time -h, --help display help for command
split
Usage: scalar document split [options] [file|url]Split your OpenAPI documents on small chunksArguments: file|url Path to OpenAPI file or URL to splitOptions: -o, --output <path> Path to save the chunks -h, --help display help for command
format
Usage: scalar document format [options] [file|url]Format an OpenAPI fileArguments: file|url File or URL to formatOptions: -o, --output <file> Output file -h, --help display help for command
mock
Usage: scalar document mock [options] [file|url]Mock an API from an OpenAPI fileArguments: file|url OpenAPI file or URL to mock the server forOptions: -w, --watch watch the file for changes -o, --once run the server only once and exit after that -p, --port <port> set the HTTP port for the mock server -h, --help display help for command
serve
Usage: scalar document serve [options] [file|url]Serve an API Reference from an OpenAPI fileArguments: file|url OpenAPI file or URL to show the reference forOptions: -w, --watch watch the file for changes -o, --once run the server only once and exit after that -p, --port <port> set the HTTP port for the API reference server -h, --help display help for command
share
Usage: scalar document share [options] [file]Share an OpenAPI fileArguments: file file to shareOptions: -t, --token <token> pass a token to update an existing sandbox -h, --help display help for command
validate
Usage: scalar document validate [options] [file|url]Validate an OpenAPI fileArguments: file|url File or URL to validateOptions: -h, --help display help for command
void
Usage: scalar document void [options]Boot a server to mirror HTTP requestsOptions: -o, --once run the server only once and exit after that -p, --port <port> set the HTTP port for the mock server -h, --help display help for command
lint
Usage: scalar document lint [options] [file|url]Lint your OpenAPI file using spectral rulesArguments: file|url OpenAPI file path or urlOptions: -r, --rule <file|url> Rule path or url -h, --help display help for command
upgrade
Usage: scalar document upgrade [options] [file|url]Upgrade OpenAPI document to version 3.1Arguments: file|url File or URL to validateOptions: -o, --output <file> Path to save the upgraded output file -h, --help display help for command
project
Usage: scalar project [options] [command]Manage scalar projectOptions: -h, --help display help for commandCommands: init [options] Create a new `scalar.config.json` file to configure where your OpenAPI file is placed. check-config [file] Check a Scalar Configuration file create [options] Create a new project that is not linked to a github project. preview [options] [config] Preview scalar guides publish [options] Publish new build for a github sync project that is not linked. help [command] display help for command
init
Usage: scalar project init [options]Create a new `scalar.config.json` file to configure where your OpenAPI file isplaced.Options: -f, --file [file] your OpenAPI file -s, --subdomain [url] subdomain to publish on --force override existing configuration -h, --help display help for command
check-config
Usage: scalar project check-config [options] [file]Check a Scalar Configuration fileArguments: file File to checkOptions: -h, --help display help for command
create
Usage: scalar project create [options]Create a new project that is not linked to a github project.Options: -n, --name [name] name of your project -s, --slug [slug] project slug -h, --help display help for command
preview
Usage: scalar project preview [options] [config]Preview scalar guidesArguments: config Path to the Scalar configuration file (usually `scalar.config.json5` or `scalar.config.json`)Options: -p, --port [port] port to run the server on. If the port is not available, it will select another one. (default: "7970") -L, --log-level <level> Set the log level (debug, info, warn, error, trace) (default: "info") -F, --log-formatting <formatting> Set the log formatting (pretty|none). Defaults to pretty formatting outside of CI. (default: "pretty") -N, --no-open Do not open the browser automatically -h, --help display help for command
publish
Usage: scalar project publish [options]Publish new build for a github sync project that is not linked.Options: -s, --slug [slug] project slug -c, --config [config] your config file of the project -h, --help display help for command
registry
Usage: scalar registry [options] [command]Manage your scalar registryOptions: -h, --help display help for commandCommands: publish [options] [file] Publish an OpenAPI document to the Scalar registry update [options] [namespace] [slug] Update document metadata on scalar registry delete [namespace] [slug] Delete a document from scalar registry list [options] List all registry APIs for a team namespace help [command] display help for command
publish
Usage: scalar registry publish [options] [file]Publish an OpenAPI document to the Scalar registryArguments: file OpenAPI file to uploadOptions: --slug <slug> Slug identifier for the registry entry. Defaults to title. --namespace <namespace> Scalar team namespace --version <version> API version (e.g. 0.1.0) --private Make API private (default: false) --force Force override an existing version (default: false) -h, --help display help for command
update
Usage: scalar registry update [options] [namespace] [slug]Update document metadata on scalar registryArguments: namespace namespace of document you want to update slug slug of document you want to updateOptions: --title <title> Document title --description <description> Document description -h, --help display help for command
delete
Usage: scalar registry delete [options] [namespace] [slug]Delete a document from scalar registryArguments: namespace Team namespace slug Managed doc slugOptions: -h, --help display help for command
list
Usage: scalar registry list [options]List all registry APIs for a team namespaceOptions: --namespace <namespace> Team namespace -h, --help display help for command
team
Usage: scalar team [options] [command]Manage user teamsOptions: -h, --help display help for commandCommands: list List all teams current user is part of set [options] Set current active team for the user help [command] display help for command
list
Usage: scalar team list [options]List all teams current user is part ofOptions: -h, --help display help for command
set
Usage: scalar team set [options]Set current active team for the userOptions: --team <team> Team uid -h, --help display help for command
sdk
Usage: scalar sdk [options] [command]Manage your Scalar SDKs (Enterprise Only)Options: -h, --help display help for commandCommands: list [options] List all SDKs for a team namespace create [options] Create a new SDK. update [options] Update SDK metadata. delete [options] Delete an SDK. build [options] Create an SDK build. help [command] display help for command
list
Usage: scalar sdk list [options]List all SDKs for a team namespaceOptions: --namespace <namespace> Team namespace -h, --help display help for command
create
Usage: scalar sdk create [options]Create a new SDK.Options: -a, --api <api> Registry API slug -n, --namespace <namespace> Team namespace -l, --language <language> Language of your SDK (choices: "typescript", "python", "csharp", "java", "ruby", "php", "go") -h, --help display help for command
update
Usage: scalar sdk update [options]Update SDK metadata.Options: -s, --slug <slug> SDK slug -n, --namespace <namespace> Team namespace --title <title> Title --isPrivate <isPrivate> Privacy (public/private) -h, --help display help for command
delete
Usage: scalar sdk delete [options]Delete an SDK.Options: -s, --slug <slug> SDK slug -n, --namespace <namespace> Team namespace -h, --help display help for command
build
Usage: scalar sdk build [options]Create an SDK build.Options: -s, --slug <slug> SDK slug -n, --namespace <namespace> Team namespace -v, --version <version> SDK Version -h, --help display help for command
schema
Usage: scalar schema [options] [command]Manage your Scalar schemasOptions: -h, --help display help for commandCommands: delete [options] Delete a schema. update [options] Update schema metadata. list [options] List all schemas for a team namespace publish [options] [file] Publish a shared schema to the Scalar registry help [command] display help for command
delete
Usage: scalar schema delete [options]Delete a schema.Options: -s, --slug <slug> Schema slug -n, --namespace <namespace> Team namespace -h, --help display help for command
update
Usage: scalar schema update [options]Update schema metadata.Options: -s, --slug <slug> Schema slug -n, --namespace <namespace> Team namespace --title <title> Title --description <description> Description --isPrivate <isPrivate> Privacy (public/private) -h, --help display help for command
list
Usage: scalar schema list [options]List all schemas for a team namespaceOptions: --namespace <namespace> Team namespace -h, --help display help for command
publish
Usage: scalar schema publish [options] [file]Publish a shared schema to the Scalar registryArguments: file OpenAPI file to uploadOptions: --slug <slug> Slug identifier for the registry entry. Defaults to title. --title <title> Schema title --namespace <namespace> Scalar team namespace --version <version> API version (e.g. 0.1.0) --private Make API private (default: false) -h, --help display help for command