---
title: input
categories: |
platform
version: 0.104.0
platform: |
Get input from the user.
usage: |
Get input from the user.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `input` for [platform](/commands/categories/platform.md)
<div class='command-title'>Get input from the user.</div>
## Signature
```> input {flags} (prompt)```
## Flags
- `--bytes-until-any, -u {string}`: read bytes (not text) until any of the given stop bytes is seen
- `--numchar, -n {int}`: number of characters to read; suppresses output
- `--default, -d {string}`: default value if no input is provided
- `--suppress-output, -s`: don't print keystroke values
## Parameters
- `prompt`: Prompt to show the user.
## Input/output types:
| input | output |
| ------- | ------ |
| nothing | any |
## Examples
Get input from the user, and assign to a variable
```nu
> let user_input = (input)
```
Get two characters from the user, and assign to a variable
```nu
> let user_input = (input --numchar 2)
```
Get input from the user with default value, and assign to a variable
```nu
> let user_input = (input --default 10)
```
## Subcommands:
| name | description | type |
| ------------------------------------------------ | -------------------------------- | -------- |
| [`input list`](/commands/docs/input_list.md) | Interactive list selection. | built-in |
| [`input listen`](/commands/docs/input_listen.md) | Listen for user interface event. | built-in |