Stdin-based fallback prompt used by non-REPL commands (query, run, auth, health, demo-test) when credentials were not supplied via flag/env/profile AND stdin is a TTY.
## Overview The inline prompt is the simple stdin-based credential collector used by non-REPL subcommands. It runs only when the CLI has no explicit credentials and stdin is attached to a terminal. ## Behavior - Triggered by `query`, `run`, `auth`, `health`, and `demo-test` when `credentials_explicit` is false and `stdin` reports a TTY. The implementation is `tui::collect_credentials_inline`. - The prompt writes `Username:` and `Password:` to the terminal and reads each line from stdin. The password input is not echoed. - If stdin is not a TTY, the command skips the prompt entirely and proceeds with whatever credentials the resolver produced (profile values, env vars, or the built-in defaults). This is intentional so pipes and redirected input do not block waiting for a prompt that cannot be answered. - Collected values replace the in-memory username and password on `CliConfig` before `authenticate` is called, so subsequent refresh fallbacks use the prompted credentials. ## Compatibility - Works with any POSIX-style terminal. Windows terminals that expose a conhost TTY are supported.
delta-forge-cli query SELECT 1
# Username: _
# Password: _