# exit – avsluta

> Avslutar AccordionShell. Kopplar ned direkt (hårdvaran fortsätter köra). Exitkod 0.

_Källa: E-Sharp (esharp.se) · Accordion Shell (CLI)_


## Description

The `exit` command terminates the AccordionShell application. It closes the active connection and exits the program.

## Syntax

```bash
exit
```

This command has no options.

## Output

```
See ya later!
```

## Behavior

1. Displays a farewell message
2. Calls `Environment.Exit(0)`
3. Terminates the application immediately (exit code 0)

Exit is immediate with no confirmation prompt. The hardware connection is dropped (the hardware keeps running); it does not send a disconnect or wait for pending operations.

## Clean Disconnect

For firmware/SSH sessions, disconnect first:

```bash
firmware --disconnect
exit
```

## Interactive vs. Script Mode

In interactive mode you can also exit with `Ctrl+C` or by closing the terminal window; `exit` is the cleanest method. In script mode `exit` is usually unnecessary, since AccordionShell exits after executing the command.
