# selfUpgradeCommand

<!-- https://uncage.vercel.app/docs/api/agent/functions/selfupgradecommand/ -->

```ts
function selfUpgradeCommand(o?): Promise<[string, string[]]>;
```

Defined in: agent/src/exe.ts:60

The self-upgrade command (`npm i -g @uncage/cli@latest`), resolved for the Node running this
process so the upgrade lands where this CLI was installed. Windows: always `node npm-cli.js …`,
never `npm.cmd` (cmd.exe mangles arguments, and `.cmd` cannot be started without a shell).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `o?` | [`ResolveOptions`](https://uncage.vercel.app/docs/api/agent/interfaces/resolveoptions.md) |

## Returns

`Promise`\<\[`string`, `string`[]\]\>
