Home Explore Blog CI



nushell

commands/docs/export_use.md
42b06d427bc29c3b06398b1465aa7d62f065a27a8f3bdaa30000000300000430
---
title: export use
categories: |
  core
version: 0.104.0
core: |
  Use definitions from a module and export them from this module.
usage: |
  Use definitions from a module and export them from this module.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `export use` for [core](/commands/categories/core.md)

<div class='command-title'>Use definitions from a module and export them from this module.</div>

## Signature

```> export use {flags} (module) ...rest```

## Parameters

 -  `module`: Module or module file.
 -  `...rest`: Which members of the module to import.


## Input/output types:

| input   | output  |
| ------- | ------- |
| nothing | nothing |
## Examples

Re-export a command from another module
```nu
> module spam { export def foo [] { "foo" } }
    module eggs { export use spam foo }
    use eggs foo
    foo

foo
```

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

Chunks
2e529ca3 (1st chunk of `commands/docs/export_use.md`)
Title: export use
Summary
The `export use` command in Nushell allows you to import definitions (like commands) from a module and then re-export them from the current module. This enables you to create aggregated modules that expose functionality from other modules.