# yargs

> Parse command-line arguments and build CLIs in Node.js

Source: https://talira.ai/catalog/yargs-y8jq9yaq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / cli frameworks](https://talira.ai/categories/libraries/cli-frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [yargs](https://talira.ai/orgs/yargs.md)

yargs is a Node.js library for building interactive command-line tools: it parses arguments into commands and grouped options, generates a help menu from them, and writes Bash and Zsh completion scripts for your program. It has TypeScript typings and also runs in the browser. The current version supports Node.js's long-term support releases from 20.19 on. It's the pirate-themed successor to optimist.

## Links

- Website: https://yargs.js.org/
- GitHub: https://github.com/yargs/yargs
- Docs: https://yargs.js.org/docs/

## Problems it solves

- parse command-line flags and subcommands in a Node.js script
- give my Node CLI a generated --help screen
- add shell tab completion to a Node command-line tool

## Features

- Commands with grouped options
- Help menu generated from your commands and options
- Bash and Zsh completion scripts
- TypeScript typings and browser support

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 0.72, adoption 0.81, momentum 0.57, community 1.00, backing 0.30, extensibility 0.00.

- last commit 13 days ago
- 18 commits in the last 90 days
- latest release v18.2.0 2 months ago
- 11.5k GitHub stars
- 316 contributors
- accepts sponsorship (Github, Thanks Dev, Tidelift)
- has a company behind it

## Alternatives

- [oclif](https://talira.ai/catalog/oclif-jc7mkd43.md): Salesforce's open CLI framework for building Node.js command-line tools
- [Commander.js](https://talira.ai/catalog/commander-js-r3pn8w4k.md): The complete solution for Node.js command-line interfaces
- [meow](https://talira.ai/catalog/meow-5dt57c23.md): Small helper for building Node.js command-line apps
- [minimist](https://talira.ai/catalog/minimist-xjjkaag0.md): Minimal command-line argument parser for Node.js

## Sources

[^1]: https://github.com/yargs/yargs/blob/main/LICENSE (checked 28 Nov 2026)
