HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nu — Nushell ("a new type of shell") takes a modern, structured approach to your command-line. See also:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandtakesnushellnewclitypenu

Problem

How to use the nu command: Nushell ("a new type of shell") takes a modern, structured approach to your command-line. See also: elvish. More information: <https://www.nushell.sh/book/configuration.html#flag-behavior>.

Solution

nu — Nushell ("a new type of shell") takes a modern, structured approach to your command-line. See also: elvish. More information: <https://www.nushell.sh/book/configuration.html#flag-behavior>.

Start an interactive shell session:
nu


Execute specific commands:
nu {{[-c|--commands]}} "{{echo 'nu is executed'}}"


Execute a specific script:
nu {{path/to/script.nu}}


Execute a specific script with logging:
nu --log-level {{error|warn|info|debug|trace}} {{path/to/script.nu}}

Code Snippets

Start an interactive shell session

nu

Execute specific commands

nu {{[-c|--commands]}} "{{echo 'nu is executed'}}"

Execute a specific script

nu {{path/to/script.nu}}

Execute a specific script with logging

nu --log-level {{error|warn|info|debug|trace}} {{path/to/script.nu}}

Context

tldr-pages: common/nu

Revisions (0)

No revisions yet.