> ## Documentation Index
> Fetch the complete documentation index at: https://wsignal.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# update

> Check for and install the latest wsignal version.

```bash theme={null}
wsignal update [--manager npm|pnpm] [--global|--dev] [--yes]
```

`wsignal update` checks the npm registry for the latest `@wsignal/cli` version and prints update commands.

It does not install anything unless you pass `--yes`.

## Options

### `--manager <npm|pnpm>`

Package manager to use. If omitted, `wsignal` uses the current package-manager user agent when available, otherwise `npm`.

### `--global`

Update a global CLI installation.

With npm, this runs:

```bash theme={null}
npm install -g @wsignal/cli@latest
```

With pnpm, this runs:

```bash theme={null}
pnpm add -g @wsignal/cli@latest
```

### `--dev`

Update a project-local dev dependency.

With npm, this runs:

```bash theme={null}
npm install -D @wsignal/cli@latest
```

With pnpm, this runs:

```bash theme={null}
pnpm add -D @wsignal/cli@latest
```

### `--yes`

Run the selected update command.

Without `--yes`, `wsignal` only prints the command.

## Examples

Show update status and suggested commands:

```bash theme={null}
wsignal update
```

Run a global npm update:

```bash theme={null}
wsignal update --manager npm --global --yes
```

Run a project-local pnpm update:

```bash theme={null}
wsignal update --manager pnpm --dev --yes
```
