Home Explore Blog CI



nushell

commands/docs/export_extern.md
94327e667943fffe9f00f1d00668cf684d2cd63a66a53e5d000000030000039c
---
title: export extern
categories: |
  core
version: 0.104.0
core: |
  Define an extern and export it from a module.
usage: |
  Define an extern and export it from a module.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

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

<div class='command-title'>Define an extern and export it from a module.</div>

## Signature

```> export extern {flags} (def_name) (params)```

## Parameters

 -  `def_name`: Definition name.
 -  `params`: Parameters.


## Input/output types:

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

Export the signature for an external command
```nu
> export extern echo [text: string]

```

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

Chunks
84d473f8 (1st chunk of `commands/docs/export_extern.md`)
Title: export extern Command in Nushell
Summary
The `export extern` command in Nushell is used to define an external command's signature and export it from a module. It takes the definition name and parameters as input. The command is a parser keyword, and more details can be found in the Nushell book.