# dependency_refresh_command

> **Function** in `deepagents_code`

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

Return the uv command that refreshes deps for the current dcode version.

## Signature

```python
dependency_refresh_command(
    *,
    version: str = __version__,
    include_prereleases: bool | None = None,
    distribution_name: str = 'deepagents-code',
) -> str
```

## Description

Propagates `ExtrasIntrospectionError` if installed extras cannot be
determined safely from distribution metadata, or a metadata-sourced extra name
fails PEP 508 validation, and `ToolRequirementIntrospectionError` if the uv
tool `--with` packages or interpreter cannot be determined safely from the
tool receipt. `perform_dependency_refresh` converts both into a user-facing
failure.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `version` | `str` | No | Exact `deepagents-code` version to keep installed. (default: `__version__`) |
| `include_prereleases` | `bool \| None` | No | Whether to include alpha/beta/rc releases. When `None`, follows the installed version's channel. (default: `None`) |
| `distribution_name` | `str` | No | Name of the installed distribution to inspect for already-installed extras. (default: `'deepagents-code'`) |

## Returns

`str`

Shell command string suitable for execution via the shell.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/update_check.py#L2735)