From 8c1add10133aadbdb4171e218024fb4f6617ff19 Mon Sep 17 00:00:00 2001 From: Mike Plachta Date: Mon, 17 Feb 2025 17:32:16 -0800 Subject: [PATCH] Detect if run is a flow and kick it off properly --- src/crewai/cli/run_crew.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crewai/cli/run_crew.py b/src/crewai/cli/run_crew.py index 95b560109..c31af9a71 100644 --- a/src/crewai/cli/run_crew.py +++ b/src/crewai/cli/run_crew.py @@ -26,6 +26,9 @@ def run_crew() -> None: fg="red", ) + if pyproject_data.get("tool", {}).get("crewai", {}).get("type") == "flow": + command = ["uv", "run", "kickoff"] + try: subprocess.run(command, capture_output=False, text=True, check=True)