# SELF_UPGRADE

<!-- https://uncage.vercel.app/docs/api/agent/variables/self_upgrade/ -->

```ts
const SELF_UPGRADE: [string, string[]];
```

Defined in: agent/src/agent.ts:48

The POSIX form of the self-upgrade command. The agent runs `selfUpgradeCommand()` instead, which
resolves npm for the Node in use (on Windows: `node npm-cli.js`, never `npm.cmd`).

:::caution[Deprecated]
use `selfUpgradeCommand()`.
:::
