Commands
Every command in @scalar/cli 2.11.0. Run scalar <command> --help for the same details in your terminal, or scalar context to get the whole tree as JSON for an AI agent.
scalar document
Work with OpenAPI and AsyncAPI descriptions.
scalar document bundle: Bundle external references into a single API descriptionscalar document split: Split an OpenAPI or AsyncAPI description into referenced JSON filesscalar document join: Join API descriptions of the same format into one descriptionscalar document format: Format an OpenAPI or AsyncAPI descriptionscalar document convert: Convert a Postman collection to an OpenAPI descriptionscalar document markdown: Generate Markdown documentation from an OpenAPI descriptionscalar document mock: Run a Mock Server for OpenAPI operations or AsyncAPI WebSocket and SSE channelsscalar document serve: Serve API Reference documentation from an OpenAPI or AsyncAPI descriptionscalar document share: Publish an OpenAPI or AsyncAPI description to a public sandboxscalar document validate: Validate an OpenAPI or AsyncAPI descriptionscalar document void: Mirror HTTP requests with a local serverscalar document lint: Lint an OpenAPI or AsyncAPI description with Spectral rulesscalar document upgrade: Upgrade an API description to OpenAPI 3.1 or the latest supported AsyncAPI version
scalar project
Manage Scalar Docs projects.
scalar project list: List projects and their slugs for the current teamscalar project get: Show project details for the current teamscalar project init: Initialize a local Scalar Docs projectscalar project check-config: Validate a Scalar configuration filescalar project create: Create a Scalar project without a linked GitHub repositoryscalar project preview: Preview a Scalar Docs project locallyscalar project publish: Publish a new build of a Scalar projectscalar project rollback: Roll the live deployment back to a previously deployed buildscalar project deployments list: List production deployments for a projectscalar project upgrade: Upgrade a Scalar Docs configuration
scalar registry
Manage API descriptions in the Scalar Registry.
scalar registry publish: Publish an OpenAPI description to the Scalar Registryscalar registry update: Update API description metadata in the Scalar Registryscalar registry delete: Delete an API description from the Scalar Registryscalar registry list: List Scalar Registry API descriptions in a team namespacescalar registry get: Download an API description version from the Scalar Registry
scalar auth
Log in to Scalar and manage your session.
scalar auth login: Log in to Scalarscalar auth whoami: Show the logged-in user and current teamscalar auth logout: Log out of Scalar
scalar team
List and switch between your Scalar teams.
scalar team list: List your Scalar teamsscalar team get: Show the current team and its namespacesscalar team set: Select the current team
scalar schema
Manage shared schemas in the Scalar Registry.
scalar schema delete: Delete a shared schemascalar schema update: Update shared schema metadatascalar schema list: List shared schemas in a team namespacescalar schema get: Download a shared schema version from the Scalar Registryscalar schema publish: Publish a shared schema to the Scalar Registry
scalar sdk
Manage Scalar SDKs (Enterprise only).
scalar sdk list: List SDKs in a team namespacescalar sdk get: Inspect SDK metadata, API source, versions, and build statusscalar sdk create: Create an SDK in the namespace of its source APIscalar sdk update: Update SDK metadatascalar sdk delete: Delete an SDKscalar sdk build: Start an SDK build
scalar access-group
Manage access groups and allowed email domains for the current team.
scalar access-group list: List access groups for the current teamscalar access-group create: Create an access group (Pro or above)scalar access-group get: Get an access group and its allowlistsscalar access-group update: Update access group metadatascalar access-group delete: Delete an access group and remove its project assignmentsscalar access-group domain add: Add an exact email domain to an access groupscalar access-group domain remove: Remove an exact email domain from an access group
General
Commands for the CLI itself: help, upgrades, shell completion, and agent context.
scalar readme: Open CLI documentation in your browserscalar readme generate: Generate the CLI README from the command treescalar upgrade: Upgrade the Scalar CLI to the latest versionscalar context: Print every command, argument, and option as JSON for AI agentsscalar completion: Generate shell completion definitions