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

swagger-cli

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool

  • 2.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
216K
increased by21.14%
Maintainers
3
Weekly downloads
 
Created

What is swagger-cli?

The swagger-cli npm package is a command-line tool for working with Swagger and OpenAPI definitions. It provides various functionalities such as validating, bundling, dereferencing, and serving API definitions.

What are swagger-cli's main functionalities?

Validate

This feature allows you to validate your Swagger/OpenAPI definition to ensure it is correctly formatted and adheres to the specification.

swagger-cli validate my-api.yaml

Bundle

This feature bundles multiple Swagger/OpenAPI files into a single file. This is useful for managing large APIs split across multiple files.

swagger-cli bundle my-api.yaml --outfile bundled-api.yaml

Dereference

This feature dereferences $ref pointers in your Swagger/OpenAPI definition, replacing them with the actual content they point to. This can be useful for simplifying the API definition.

swagger-cli dereference my-api.yaml --outfile dereferenced-api.yaml

Serve

This feature serves your Swagger/OpenAPI definition over HTTP, allowing you to view and interact with it using a web browser.

swagger-cli serve my-api.yaml

Other packages similar to swagger-cli

Keywords

FAQs

Package last updated on 12 Jun 2019

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