Skip to content

Prompts

Generally speaking, prompts are the CLI’s version of forms.

  • Use prompts for entering information
  • Use a prompt when user intent is unclear
  • Make sure to provide flags for all prompts

Yes/No

Use for yes/no questions, usually a confirmation. The default (what will happen if you enter nothing and hit enter) is in caps.

An example of a yes/no prompt.

Short text

Use to enter short strings of text. Enter will accept the auto fill if available

An example of a short text prompt.

Long text

Use to enter large bodies of text. E key will open the user’s preferred editor, and Enter will skip.

An example of a long text prompt.

Radio select

Use to select one option

An example of a radio select prompt

Multi select

Use to select multiple options

An example of a multi select prompt