Commands
Every command in @scalar/cli 2.10.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
Manage local openapi file.
scalar document bundle: Bundle an OpenAPI document by resolving all references and external dependenciesscalar document split: Split OpenAPI or AsyncAPI documents into small chunksscalar document join: Merge multiple OpenAPI or AsyncAPI documents into a single unified documentscalar document format: Format an OpenAPI or AsyncAPI filescalar document convert: Convert a Postman collection to an OpenAPI documentscalar document markdown: Generate Markdown from an OpenAPI filescalar document mock: Mock an OpenAPI API or AsyncAPI WebSocket and SSE channelsscalar document serve: Serve an API Reference from an OpenAPI or AsyncAPI filescalar document share: Share an OpenAPI or AsyncAPI filescalar document validate: Validate an OpenAPI or AsyncAPI filescalar document void: Boot a server to mirror HTTP requestsscalar document lint: Lint your OpenAPI or AsyncAPI file using spectral rulesscalar document upgrade: Upgrade an OpenAPI or AsyncAPI document to version 3.1
scalar project
Manage scalar project.
scalar project list: List projects and their slugs for the current teamscalar project get: Get project details for the current teamscalar project init: Create a new Scalar Docs projectscalar project check-config: Check a Scalar Configuration filescalar project create: Create a new project that is not linked to a github projectscalar project preview: Preview scalar guidesscalar project publish: Publish new build for a github sync project that is not linkedscalar project rollback: Roll the live deployment back to a previously deployed buildscalar project deployments list: List the production deployment history for a projectscalar project upgrade: Upgrade scalar project
scalar registry
Manage your scalar registry.
scalar registry publish: Publish an OpenAPI document to the Scalar registryscalar registry update: Update document metadata on scalar registryscalar registry delete: Delete a document from scalar registryscalar registry list: List all registry APIs for a team namespacescalar registry get: Get a document version from scalar registry
scalar auth
Manage authorization on scalar platform.
scalar auth login: Login to scalarscalar auth whoami: Display the current userscalar auth logout: Logout from scalar
scalar team
Manage user teams.
scalar team list: List all teams current user is part ofscalar team get: Get the current team and its namespacesscalar team set: Set current active team for the user
scalar schema
Manage your Scalar schemas.
scalar schema delete: Delete a schemascalar schema update: Update schema metadatascalar schema list: List all schemas for a team namespacescalar schema get: Get a schema document version from the Scalar registryscalar schema publish: Publish a shared schema to the Scalar registry
scalar sdk
Manage your Scalar SDKs (Enterprise Only).
scalar sdk list: List all SDKs for a team namespacescalar sdk get: Inspect SDK metadata, API source, versions, and build statusscalar sdk create: Create a new SDK. The SDK is created in the namespace of the API it is built fromscalar sdk update: Update SDK metadatascalar sdk delete: Delete an SDKscalar sdk build: Build an SDK
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 documentation for the CLIscalar readme generate: Self generate documentation for the cliscalar upgrade: Upgrade current version of your cliscalar context: Print every command, argument, and option as JSON for AI agentsscalar completion: Generate shell completion definitions