Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 22, 2025. It is now read-only.
/cliPublic archive

Command-line interface to work with OpenAPI files

License

NotificationsYou must be signed in to change notification settings

scalar/cli

Repository files navigation

This repository was moved:https://www.npmjs.com/package/@scalar/cli

Scalar CLI

CIReleaseContributorsGitHub LicenseDiscord

Command-line interface to work with OpenAPI files

Demo Video

Features

  • Format & validate OpenAPI files
  • Upload your OpenAPI files to Scalar
  • Get a fully mocked API for testing purposes
  • Preview your API reference
  • Bundle multiple OpenAPI files

Quickstart

npx @scalar/clihelp

Installation

npm install -g @scalar/cliscalar --version

Usage

scalar initscalar format openapi.jsonscalar validate openapi.jsonscalar bundle openapi.json --output bundle.jsonscalar reference openapi.json --watchscalar mock openapi.json --watchscalar share openapi.json

Full documentation

GitHub Actions

To validate your OpenAPI file in GitHub Actions, add this workflow:

# .github/workflows/validate-openapi-file.ymlname:Validate OpenAPI Fileon:push:branches:      -mainpull_request:branches:      -mainjobs:validate:runs-on:ubuntu-lateststeps:      -uses:actions/checkout@v4      -name:Use Node.jsuses:actions/setup-node@v4with:node-version:20      -name:Validate OpenAPI File# Replace `./my-openapi-file.json` with the correct path and filename for your project.# Or: run `npx @scalar/cli init` and add the config file to your repository.run:npx @scalar/cli validate ./my-openapi-file.json

Community

We are API nerds. You too? Let’s chat on Discord:https://discord.gg/8HeZcRGPFS

Contributors

hanspagel
hanspagel
hwkr
hwkr

Contributions are welcome! ReadCONTRIBUTING.

License

The source code in this repository is licensed underMIT.

About

Command-line interface to work with OpenAPI files

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp