# perform_upgrade

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/update_check/perform_upgrade)

Attempt to upgrade `deepagents-cli` using the detected install method.

Only tries the detected method — does not fall back to other package
managers to avoid cross-environment contamination.

## Signature

```python
perform_upgrade() -> tuple[bool, str]
```

## Returns

`tuple[bool, str]`

`(success, output)` — *output* is the combined stdout/stderr.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/cli/deepagents_cli/update_check.py#L586)