Choose Inquirer when a person is answering
Inquirer.js gives JavaScript command-line tools ready-made questions, including searchable choices, checkboxes and an external-editor prompt. Consider it for a setup wizard where a person is present. Inquirer cannot run in a non-interactive shell without an interactive input stream. Give unattended commands another way to obtain answers.
The modern API returns an answer from each awaited prompt. Branching stays in application code: the README shows a confirmation followed by an email question only when the answer is yes.
Before adopting @inquirer/prompts@8.8.0, check its Node.js requirement: ^22.22.2 || ^24.15.0 || >=26.0.0. The release notes give that exact range. A generic Node 22 label is insufficient to establish compatibility with it.
What happened when we ran it
Our stored sandbox run on October 6, 2026, at commit a9436bd installed successfully, but the test command exited 1. This correction uses that recorded execution; no new execution was performed.
| Step | Recorded outcome |
|---|---|
| Yarn install | Succeeded in 40 seconds; 494 dependencies recorded, 282 MB on disk |
| Build | Skipped because no build script or target was detected |
| Vitest | 433 passed, 4 failed, 1 skipped of 438; command exited 1 in 37 seconds |
These are the stored aggregate counts, not a reconciled inventory of unique tests. The log identifies four failures in packages/i18n/test/confirm.test.ts and shows the error "Test timed out in 5000ms." Its file summary reports one failed file and 33 passing files. Contributors have a concrete starting point: reproduce those localized-confirm failures at the recorded commit. The supplied log does not establish their cause or show that localized confirmation fails in a deployed application.
The harness recorded 3 CPUs, 8 GB RAM and image label lab-node:22. The actual runtime version is not established. The checkout contained 278 files and about 23,640 source lines, occupying 1.5 MB before dependencies. The harness detected monorepo workspaces and five CI workflow files. Its lack of a top-level tests directory does not mean tests were absent: the log shows tests inside packages.
Terminal input needs explicit ownership
The README warns that custom input streams and piped stdin may need raw mode for arrow keys to work. It also tells callers with an existing node:readline interface to pause that interface before opening a prompt and resume it after the prompt settles. Check that handoff in your application.
Ctrl+C rejects the prompt promise. Handle cancellation at the command boundary so quitting a wizard does not produce an unhandled stack trace. Preserve unrelated errors rather than hiding every exception.
| Symptom | Documented place to look |
|---|---|
| Arrow keys do nothing with custom stdin | Raw-mode handling and input-stream ownership |
| Git hook has no interactive input | The README's TTY recipe for scripts and hooks |
| Ctrl+C prints a stack trace | Rejected prompt promise and application error handling |
These are documentation-based integration checks. They do not explain the localized-confirm timeouts in the recorded run.
Check legacy plugins before migrating
The README describes the previous package as maintained but no longer actively developed. It also warns that community prompts may not have migrated to the latest API. Inventory required plugins before replacing an established wizard with @inquirer/prompts.
The inquirer library guide covers the legacy question-object interface. This repository review focuses on the modern prompt functions, terminal integration and the recorded source run.
Treat the Windows report as a specific report
In issue #1783, opened July 3, 2025, CarbonCollins reports that only the first select choice appears in PowerShell and Git Bash, while arrow navigation still changes the selection. The reporter says they tested @inquirer/select versions 7.4.0 through 7.6.0 and contrasts the result with working rendering in WSL.
The supplied page shows the issue open. A June 6, 2026 maintainer reply requests runtime, terminal and output-trace details; it does not establish a resolution. This historical report does not verify current-release behavior. If Windows terminals are part of your audience, check the shell and terminal application your users actually open.
Alternatives by API preference
Prompts accepts question objects and returns an object containing the responses. Consider it when defining a question chain and collecting named answers fits your application.
Clack provides opinionated prompt components through @clack/prompts and headless, unstyled primitives through @clack/core. Consider it when that presentation or lower-level interface fits your CLI.
These recommendations concern documented API choices. Neither alternative was executed for this review, and no speed or reliability ranking is implied.
What the ratings assess
The documentation rubric is: 1 means missing task guidance; 2 means substantial gaps in the reviewed tasks; 3 means a basic usable path; 4 means detailed guidance with application checks remaining; 5 means all reviewed integration questions are answered. Documentation receives 4/5 for its installation, conditional-question, cancellation, stdin and migration guidance. Actual terminal behavior still needs application testing. This score assesses the supplied documentation, not compatibility or reliability.
Setup ease, community support and production maturity remain unassessed. A source-checkout installation does not establish the ease of integrating a supported deployed CLI. Adoption and support responsiveness were not assessed.
What we have not tested
The supplied run does not establish the timeout cause, actual runtime version, terminal compatibility, accessibility, runtime performance or the footprint of installing only the published prompt package. There is no security audit result or separately exercised deployed CLI in this record. The October checkout result does not verify @inquirer/prompts@8.8.0.
Before adopting Inquirer, check the selected package version's runtime requirement, then make your smallest representative wizard handle cancellation and input ownership in your users' terminal.

