# Installation

> Install the Cawide host CLI on macOS, Linux, or Windows workstations, check platform prerequisites, and learn how to update or uninstall.

Source: https://cawide.dev/docs/install

The Cawide CLI is distributed as an npm package that runs on your local workstation and manages terminal sessions and agent hooks.

## Platform support

Cawide supports the following desktop operating systems and architectures:

- **macOS**: Apple silicon (M1, M2, M3, M4) and Intel (x86_64), macOS 13 or later recommended.
- **Linux**: x86_64 (amd64) and aarch64 (arm64) distributions with glibc 2.28 or later.
- **Windows**: x86_64 (amd64) on Windows 10/11, running PowerShell or Command Prompt via ConPTY.

The Cawide mobile app runs on iPhone with iOS 17 or later in portrait orientation (Push-to-Start Live Activities require iOS 17.2 or later).

## Prerequisites

- Node.js version 18.0.0 or higher.
- npm package manager (or pnpm / yarn).
- A terminal with PTY support (such as zsh, bash, fish, or Windows PowerShell / cmd).

## Installing the CLI

Install the `cawide` command globally using npm:

```bash
npm install -g cawide
```

After installation, verify that the binary is available in your PATH:

```bash
cawide --version
```

Check the host daemon status:

```bash
cawide status
```

## Running the host service

To launch the host in the background:

```bash
cawide start
```

If you prefer running the host in the foreground for debugging:

```bash
cawide serve -f
```

To restart the background service:

```bash
cawide restart
```

To stop the host service:

```bash
cawide stop
```

You can also use the alias `cawide quit`.

## Updating Cawide

To update to the latest version of the CLI:

```bash
cawide update
```

Alternatively, run the npm update command:

```bash
npm install -g cawide@latest
```

## Uninstalling

To uninstall the Cawide CLI and stop the background daemon:

```bash
cawide stop
npm uninstall -g cawide
```

To remove local configuration files, logs, and paired keys:

```bash
rm -rf ~/.config/cawide ~/.local/share/cawide
```

## Source code

The CLI is open source under Apache-2.0 at [github.com/Hermillon/cawide](https://github.com/Hermillon/cawide). Run `cawide update` to get the latest release (0.16.1).

