# Install swagger-cli with npm

Swagger 2.0 and OpenAPI 3.0 command-line tool. Version 4.0.4 via npm; verified 2020-07-19.

## Install

```sh
sudo av install npm:swagger-cli
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g swagger-cli
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:swagger-cli
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/swagger-cli>
- **Version:** 4.0.4
- **Source summary:** Swagger 2.0 and OpenAPI 3.0 command-line tool
- **Homepage:** <https://apitools.dev/swagger-cli/>
- **Repository:** <https://github.com/APIDevTools/swagger-cli>
- **Upstream docs:** <https://apitools.dev/swagger-cli/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/swagger-cli/-/swagger-cli-4.0.4.tgz>
- **Issue tracker:** <https://github.com/APIDevTools/swagger-cli/issues>
- **Published:** 2020-07-19T14:21:32.831Z
- **Last updated:** 2020-07-19T14:21:32.831Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- swagger-cli (cli)
- swagger-cli (alias)

## Dependencies

- @apidevtools/swagger-cli

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 4.0.4
- Package-manager updated: 2020-07-19
- Local data: ok
- Upstream repository: https://github.com/APIDevTools/swagger-cli
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for swagger-cli. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.4
- **Version Count:** 27
- **Maintainers:** bigstickcarpet, rkrauskopf, philsturgeon, jamesmessinger
- **Author:** James Messinger
- **Publisher:** jamesmessinger
- **Engines:** Node: >=10
- **Integrity:** sha512-Cp8YYuLny3RJFQ4CvOBTaqmOOgYsem52dPx1xM5S4EUWFblIh2Q8atppMZvXKUr1e9xH5RwipYpmdUzdPcxWcA==
- **Shasum:** c3f0b94277073c776b9bcc3ae7507b372f3ff414
- **Unpacked Size:** 10,877
- **File Count:** 0
- **Created At:** 2014-08-08T23:09:02.194Z
- **Latest Published At:** 2020-07-19T14:21:32.831Z
- **Modified At:** 2022-11-28T22:44:51.969Z


## Related links

- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [swagger-tools](https://pkg.so/npm/swagger-tools/) - Both packages work with overlapping file formats or content types. Shared terms: api, api-tools, cli, developer, developer-tools.
- [swagger-ui-watcher](https://pkg.so/npm/swagger-ui-watcher/) - Both packages work with overlapping file formats or content types. Shared terms: api, api-tools, cli, developer, developer-tools.
- [swagger-merger](https://pkg.so/npm/swagger-merger/) - Both packages work with overlapping file formats or content types. Shared terms: api, api-tools, cli, developer, developer-tools.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
