Nushell Reference Documentation
Comprehensive reference documentation for Nushell language features and APIs.
Type
Example
Description
int
42, -17, 0xff
64-bit signed integer
float
3.14, 1e-5
64-bit float
string
"hello", 'world'
UTF-8 string
bool
true, false
Boolean
duration
5min, 2hr
Time duration
filesize
10kb, 1gb
File size
date
2024-01-15
Datetime
nothing
null
Null value
list
[1, 2, 3]
Ordered list
record
{a: 1, b: 2}
Key-value record
table
[[a]; [1]]
List of records
closure
{|x| $x}
Anonymous function
binary
0x[FF 00]
Raw bytes
range
1..10
Numeric range
Category
Operators
Arithmetic
+, -, *, /, //, mod, **
Comparison
==, !=, <, >, <=, >=
Logical
and, or, not, xor
String
=~, !~, ++, in, not-in
Pipeline
|, |>, o>, e>, o+e>
Assignment
=, +=, -=, *=, /=, ++=
Category
Examples
Filesystem
ls, cd, cp, mv, rm, mkdir, open, save
Strings
str join, str split, str replace, str trim
Lists
each, where, select, first, last, flatten
Math
math sum, math avg, math round
Dates
date now, date to-record, format date
HTTP
http get, http post, http put, http delete
Formats
from json, to json, from csv, to csv
System
ps, sys, which, exec