Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apidevtools/swagger-cli

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apidevtools/swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool

  • 4.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
245K
increased by0.01%
Maintainers
2
Weekly downloads
 
Created

What is @apidevtools/swagger-cli?

@apidevtools/swagger-cli is a command-line tool for working with Swagger and OpenAPI definitions. It allows you to bundle, dereference, validate, and serve your API definitions, making it easier to manage and deploy your API documentation.

What are @apidevtools/swagger-cli's main functionalities?

Bundle

The bundle command combines all the files referenced in your Swagger/OpenAPI definition into a single file. This is useful for simplifying the distribution and deployment of your API documentation.

swagger-cli bundle path/to/api.yaml -o bundled.yaml

Dereference

The dereference command replaces all $ref pointers in your Swagger/OpenAPI definition with the actual referenced content. This results in a single, fully-resolved API definition file.

swagger-cli dereference path/to/api.yaml -o dereferenced.yaml

Validate

The validate command checks your Swagger/OpenAPI definition for errors and ensures it adheres to the specification. This helps catch issues early in the development process.

swagger-cli validate path/to/api.yaml

Serve

The serve command starts a local HTTP server to serve your Swagger/OpenAPI definition. This is useful for quickly previewing your API documentation in a web browser.

swagger-cli serve path/to/api.yaml

Other packages similar to @apidevtools/swagger-cli

Keywords

FAQs

Package last updated on 19 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc