For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLIRead

Reads a line of text from the CLI.

You can optionally provide a prompt string to display before reading the input.

Method Signature

CLIRead(prompt=[string])

Arguments

Argument
Type
Required
Description
Default

prompt

string

false

An optional prompt string to display before reading input.

Examples

Read input from the CLI

// In a CLI context, reads a line from stdin
// value = cliRead( "Enter name: " );
writeOutput( "reads stdin" );

Result: reads stdin

Last updated

Was this helpful?