This chapter explains some of the fundamentals of the Nushell programming language. After going through it, you should hopefully get an idea how to make simple Nushell programs.
Nushell has a rich type system. You will find typical data types such as strings or integers and less typical data types, such as cell paths. Furthermore, one of the defining features of Nushell is the notion of structured data which means that you can organize types into collections: lists, records, or tables. Contrary to the traditional Unix approach where commands communicate via plain text, Nushell commands communicate via all the different data types. All of the above is explained in Types of Data.
Loading Data explains how to read common data formats, such as JSON, into structured data. This includes our own "NUON" data format.
Just like Unix shells, Nushell commands can be composed into pipelines to pass and modify a stream of data.
Some data types have many interesting features that deserve their own sections: strings, lists, and tables. Apart from explaining the features, the linked sections also show how to do some common operations, such as composing strings or updating values in a list.
Finally, Command Reference shows a list of all the built-in commands with their brief descriptions. Note that you can access this info also from within Nushell using the