Files
langgraph/libs/cli/langgraph_cli
gethin-langchainandGitHub a1ce197234 feat(cli): add --json to deploy listeners list (#9243)
## Summary

`deploy listeners list` only prints a human-readable table, which a
deploy automation pipeline can't reliably parse to extract a listener's
id for `--listener-id`.

Adds `--json`, which prints the listeners as a JSON array instead of the
table. An empty workspace prints `[]` rather than the "No listeners
found" sentence, so callers never need to special-case the no-results
path when scripting against it.

## Test plan

- [x] `make format && make lint` clean in `libs/cli`
- [x] `test_deploy_listeners_list_command_json` and
`test_deploy_listeners_list_command_json_no_results` in `test_cli.py`,
mirroring the existing table-output test pair
- [x] Full `libs/cli` suite: 529 passed, no regressions
2026-10-13 15:43:03 +01:00
..
2026-10-07 09:19:34 -04:00
2025-05-09 13:14:45 -07:00
2026-04-22 11:29:23 -07:00
2026-04-22 11:29:23 -07:00
2024-06-24 18:14:56 -04:00
2024-06-20 17:08:35 -04:00
2026-03-13 16:07:27 -04:00
2024-06-24 18:14:56 -04:00