# update

> Run shoplazza update to self-update Shoplazza CLI to the latest npm release, and see the flags that control how the update runs.

Update the CLI to the latest version via npm.



Self-update the CLI by running `npm install -g shoplazza-cli@latest`.

```shell
shoplazza update [flags]
```

### Flags

| Flag | Type | Description |
|------|------|-------------|
| `--check` | bool | Only report current and latest versions without installing |

### Examples

```shell
# Update to the latest version
shoplazza update

# Check for updates without installing
shoplazza update --check
```

### Output (--check)

```json
{
  "current": "1.2.0",
  "latest": "1.3.0",
  "up_to_date": false
}
```

### Notes

- Requires Node.js and npm on your PATH.
- If the CLI was not installed via npm, a warning is displayed indicating that `npm install -g` will create a separate npm-managed copy.
