Home Explore Blog CI



nushell

1st chunk of `commands/docs/commandline.md`
5b3de5ec21f643f282d41589f0c4dc9f0b5a4989a94ddb3f00000001000004fa
---
title: commandline
categories: |
  core
version: 0.104.0
core: |
  View the current command line input buffer.
usage: |
  View the current command line input buffer.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `commandline` for [core](/commands/categories/core.md)

<div class='command-title'>View the current command line input buffer.</div>

## Signature

```> commandline {flags} ```


## Input/output types:

| input   | output |
| ------- | ------ |
| nothing | string |

## Subcommands:

| name                                                                 | description                                   | type     |
| -------------------------------------------------------------------- | --------------------------------------------- | -------- |
| [`commandline edit`](/commands/docs/commandline_edit.md)             | Modify the current command line input buffer. | built-in |
| [`commandline get-cursor`](/commands/docs/commandline_get-cursor.md) | Get the current cursor position.              | built-in |
| [`commandline set-cursor`](/commands/docs/commandline_set-cursor.md) | Set the current cursor position.              | built-in |

Title: commandline command in Nushell
Summary
The `commandline` command in Nushell is a core command that allows you to view the current command line input buffer. It takes no input and outputs a string representing the buffer's content. It also has subcommands to edit the buffer and get/set the cursor position.