export

Export custom commands or environment variables from a module.

Signature

> export

Notes

This command is a parser keyword. For details, check:
  https://www.nushell.sh/book/thinking_in_nushell.html

Examples

Export a definition from a module

> module utils { export def my-command [] { "hello" } }; use utils my-command; my-command