@clack/prompts

Build beautiful command-line prompts and interactive CLI apps

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Effortlessly build beautiful command-line apps 🪄 [Try the demo](https://stackblitz.com/edit/clack-prompts?file=index.js)

Commands

clack

Examples

Create an interactive text input prompt$ npx @clack/prompts
Use in a Node.js script for user selection$ node -e "import('@clack/prompts').then(m => m.select({message: 'Choose:', options: [{label: 'A'}, {label: 'B'}]}))"
Build interactive CLI workflow with multiple prompts$ npx @clack/prompts --demo