From bb6785bbef21e08e53c45860e38ae8101c5e8d8e Mon Sep 17 00:00:00 2001 From: Andrew Nguonly Date: Mon, 8 Jul 2024 17:46:21 -0700 Subject: [PATCH] cli: set verbose flag for pull in langgraph build (#955) * Set verbose flag for langgraph build. * Update CLI README. --- libs/cli/README.md | 9 ++++++++- libs/cli/langgraph_cli/cli.py | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/cli/README.md b/libs/cli/README.md index b65ad64ac..511e1b6fe 100644 --- a/libs/cli/README.md +++ b/libs/cli/README.md @@ -1,3 +1,10 @@ # langchain-cli -This package implements the official CLI for LangGraph API. \ No newline at end of file +This package implements the official CLI for LangGraph API. + +## How to Test CLI Changes Locally +These instructions are for CLI development and testing. Use the CLI examples to test CLI changes locally. +1. Make changes to the CLI code. +1. Navigate to the `libs/cli/examples`: `cd libs/cli/examples` +1. Install CLI examples dependencies: `poetry install` +1. Run/test CLI command (e.g. `langgraph build`). diff --git a/libs/cli/langgraph_cli/cli.py b/libs/cli/langgraph_cli/cli.py index 52cd6c87c..f75b3cdb4 100644 --- a/libs/cli/langgraph_cli/cli.py +++ b/libs/cli/langgraph_cli/cli.py @@ -369,6 +369,7 @@ def _build( "docker", "pull", f"{base_image}:{config_json['python_version']}", + verbose=True, ) ) set("Building...")