# sdk_requirement_from_cli

> **Function** in `deepagents_code`

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

Return the base `deepagents` requirement declared by `deepagents-code`.

Reads the installed distribution's `Requires-Dist` metadata and parses each
entry with `packaging.Requirement`, returning the applicable base
`deepagents` dependency. Extras-gated or environment-conditional variants
whose marker does not apply to the current environment are skipped.

## Signature

```python
sdk_requirement_from_cli(
    distribution_name: str = 'deepagents-code',
) -> Requirement | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `distribution_name` | `str` | No | Name of the installed distribution to inspect. (default: `'deepagents-code'`) |

## Returns

`Requirement | None`

The parsed `deepagents` requirement, or `None` when the distribution or
requirement cannot be read.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/extras_info.py#L540)