Command-Line Utility (No Graphical Interface):
This program runs inside your system terminal or command prompt rather than opening a desktop window. Follow the official installation instructions below.
Guide and Overview
What it does in plain English
Inquirer.js helps developers build user-friendly, interactive questions right inside the computer terminal. Instead of typing complex commands blindly, users can navigate neat selection menus, check boxes, and type answers easily.
Who it’s for
- Software developers creating command-line tools and utilities.
- System administrators writing setup scripts that require user input.
- Programmers looking to replace plain text prompts with visual menus.
Key features
- Multiple input types: Show simple text fields, password masks, confirmation questions, or number pickers.
- Selection menus: Let users pick single or multiple items from long lists using arrow keys.
- Searchable lists: Filter through massive option lists instantly by typing keywords.
- Automatic localization: Translate your terminal prompts into different languages effortlessly.
How to install (Download)
You can add Inquirer to your project using your favorite package manager. Open your terminal and run one of the following commands:
- npm:
npm install @inquirer/prompts - yarn:
yarn add @inquirer/prompts - pnpm:
pnpm add @inquirer/prompts - bun:
bun add @inquirer/prompts
Pros and Cons
- Pros: Extremely lightweight, highly customizable, and makes terminal tools vastly more pleasant to use.
- Cons: Requires JavaScript knowledge and runs exclusively inside terminal environments.
Sponsored Partner Tools (#ad)
Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.
- ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
- AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
- InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)
Official Source & Credits: Official Source / Credits
Affiliate transparency (#ad):
Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.