# dict_to_yaml

> **Function** in `langgraph_cli`

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

Convert a dictionary to a YAML string.

## Signature

```python
dict_to_yaml(
    d: dict,
    *,
    indent: int = 0,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/1142ebf9213e3eb01b9d1e7223b9f6b30bf8da61/libs/cli/langgraph_cli/docker.py#L169)