Home Explore Blog CI



nushell

1st chunk of `book/modules.md`
4788e563a84d8490d9810678401597b0626211c8014eb2c40000000100000245
# Modules

Like many programming languages, Nushell supports writing and using _modules_ as a way to organize code more efficiently. Modules can be thought of a "containers" that hold various definitions, including:

- Additional custom commands
- Aliases
- Constants
- Externs
- Environment variables
- And even other modules (a.k.a., submodules)

Many users will start off using modules written by others, then progress to writing their own. This chapter covers those two topics:

- [Using Modules](./modules/using_modules.md)
- [Creating Modules](./modules/creating_modules.md)

Title: Introduction to Nushell Modules
Summary
This section introduces Nushell modules, which are containers for organizing code and definitions such as custom commands, aliases, constants, externs, environment variables, and submodules. It covers using existing modules and creating new ones.