Build the `langgraph dev` command line. Args: config_path: Path to the `langgraph.json` config file. host: Host to bind. port: Port to bind. Returns: Command argv list.
(config_path: Path, *, host: str, port: int)
| 294 | |
| 295 | |
| 296 | def _build_server_cmd(config_path: Path, *, host: str, port: int) -> list[str]: |
| 297 | """Build the `langgraph dev` command line. |
| 298 | |
| 299 | Args: |
| 300 | config_path: Path to the `langgraph.json` config file. |
| 301 | host: Host to bind. |
| 302 | port: Port to bind. |
| 303 | |
| 304 | Returns: |
| 305 | Command argv list. |
| 306 | """ |
| 307 | return [ |
| 308 | sys.executable, |
| 309 | "-m", |
| 310 | "langgraph_cli", |
| 311 | "dev", |
| 312 | "--host", |
| 313 | host, |
| 314 | "--port", |
| 315 | str(port), |
| 316 | "--no-browser", |
| 317 | "--no-reload", |
| 318 | "--config", |
| 319 | str(config_path), |
| 320 | ] |
| 321 | |
| 322 | |
| 323 | def _build_server_env() -> dict[str, str]: |
no outgoing calls