Home Explore Blog CI



nushell

1st chunk of `commands/docs/extern.md`
c9b138d33fa7027b9884f66cb7bd8681d4bd266e42fc82f20000000100000377
---
title: extern
categories: |
  core
version: 0.104.0
core: |
  Define a signature for an external command.
usage: |
  Define a signature for an external command.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

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

<div class='command-title'>Define a signature for an external command.</div>

## Signature

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

## Parameters

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


## Input/output types:

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

Write a signature for an external command
```nu
> extern echo [text: string]

```

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

Title: extern Command in Nushell
Summary
The `extern` command in Nushell is used to define a signature for an external command. It takes a definition name and parameters as input. This command is a parser keyword and more details can be found in the Nushell book.