Interactive Prompting for Yargs CLIs

JSON →
library 3.0.1 ·javascript maintenance
verified May 27, 2026

yargs-interactive is a JavaScript library designed to integrate interactive command-line prompts, powered by Inquirer.js, directly into yargs-based CLIs. This enables developers to create flexible command-line tools that can either parse arguments non-interactively (suitable for scripting and automation) or dynamically prompt users for missing information (for human interaction). The current stable version is 3.0.1, released in April 2022. The project's release cadence appears to be irregular, suggesting a maintenance-focused development cycle rather than active feature additions. Its key differentiation lies in its seamless blending of Yargs' robust argument parsing with Inquirer.js's user-friendly prompting, allowing the same CLI tool to serve diverse use cases, from automated CI/CD pipelines to interactive user experiences, without extensive conditional logic.

total hits 17
actors 7 distinct systems
last hit 4d ago AhrefsBot
GPTBot
5
MetaBot
4
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France