diff --git a/docs/commands/exit.md b/docs/commands/exit.md new file mode 100644 index 000000000..7441d2ae5 --- /dev/null +++ b/docs/commands/exit.md @@ -0,0 +1,17 @@ +# exit + +Exits the nu shell. If STATUS is supplied, it will be converted to an integer and used as the exit code. Otherwise, the exit code will be that of the last command executed. + +## Examples + +```shell +> exit +``` + +```shell +> exit 1 +``` + +```shell +> exit 0 +```