> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pensar.dev/apex/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pensar.dev/apex/_mcp/server.

# pensar upgrade

> Update Pensar Apex to the latest version

## Overview

The `pensar upgrade` command checks for and installs the latest version of Pensar Apex. It detects your installation method (npm, Homebrew, or standalone binary) and performs the appropriate update.

## Usage

```bash
pensar upgrade
```

**Alias**: `pensar update`

## How It Works

1. Displays your current installed version
2. Checks the latest available version from the release server
3. If an update is available, downloads and installs it using the appropriate method for your installation type
4. Reports the result

## Example

```bash
$ pensar upgrade
Current version: v0.0.112
Checking for updates...

Updated to v0.0.113
```

## Related Commands

#### [pensar doctor](/apex/cli-commands/pensar-doctor)

Check dependencies and system health

#### [pensar version](/apex/cli-commands/pensar-version)

Show your current version