# validate_deployment_selector

> **Function** in `langgraph_cli`

📖 [View in docs](https://reference.langchain.com/python/langgraph-cli/deploy/validate_deployment_selector)

Ensure either deployment_id or name is provided.

## Signature

```python
validate_deployment_selector(
    deployment_id: str | None,
    name: str | None,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/55ec2f21939ce7755e6398c11b541de8926245ee/libs/cli/langgraph_cli/deploy.py#L290)