---
title: exit
categories: |
shells
version: 0.104.0
shells: |
Exit Nu.
usage: |
Exit Nu.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `exit` for [shells](/commands/categories/shells.md)
<div class='command-title'>Exit Nu.</div>
## Signature
```> exit {flags} (exit_code)```
## Parameters
- `exit_code`: Exit code to return immediately with.
## Input/output types:
| input | output |
| ------- | ------- |
| nothing | nothing |
## Examples
Exit the current shell
```nu
> exit
```