Home Explore Blog CI



nushell

commands/docs/alias.md
c5a75211000f5b0c61d7835028a9491fb9c77c74f14903380000000300000388
---
title: alias
categories: |
  core
version: 0.104.0
core: |
  Alias a command (with optional flags) to a new name.
usage: |
  Alias a command (with optional flags) to a new name.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

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

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

## Signature

```> 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
```nu
> alias ll = ls -l

```

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

Chunks
601c956d (1st chunk of `commands/docs/alias.md`)
Title: alias command in Nushell
Summary
The `alias` command in Nushell allows you to create a shortcut for a command, optionally including flags. It takes the alias name and the command (with flags) as input. The command doesn't take any input and doesn't produce any output. This is a parser keyword.