Home Explore Blog CI



nushell

commands/docs/export_alias.md
fb9c59a80eb1c744bdc188734ca173f1593b0ff996de9e290000000300000424
---
title: export alias
categories: |
  core
version: 0.104.0
core: |
  Alias a command (with optional flags) to a new name and export it from a module.
usage: |
  Alias a command (with optional flags) to a new name 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 alias` for [core](/commands/categories/core.md)

<div class='command-title'>Alias a command (with optional flags) to a new name and export it from a module.</div>

## Signature

```> export alias {flags} (name) (initial_value)```

## Parameters

 -  `name`: Name of the alias.
 -  `initial_value`: Equals sign followed by value.


## Input/output types:

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

Alias ll to ls -l and export it from a module
```nu
> module spam { export alias ll = ls -l }

```

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

Chunks
e51cf88f (1st chunk of `commands/docs/export_alias.md`)
Title: export alias
Summary
The `export alias` command allows you to create an alias for a command (with optional flags) and export it from a module. It takes the alias name and the command it represents as input. This command is useful for creating custom shortcuts for frequently used commands within a module.