From f8285e16011f93eabd9a099026b6a96d19fed3d6 Mon Sep 17 00:00:00 2001 From: ali Date: Wed, 1 Apr 2026 17:53:59 +0200 Subject: [PATCH] correct instructions for setting codeflash up for js/ts --- docs/getting-started/javascript-installation.mdx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/getting-started/javascript-installation.mdx b/docs/getting-started/javascript-installation.mdx index 9d109f249..319fc609b 100644 --- a/docs/getting-started/javascript-installation.mdx +++ b/docs/getting-started/javascript-installation.mdx @@ -71,16 +71,15 @@ bun add --dev codeflash -**Codeflash also requires a Python installation** (3.9+) to run the CLI optimizer. Install the Python CLI globally: +**One-time setup required.** The Codeflash optimizer runs on Python behind the scenes. After installing the npm package, run: ```bash -pip install codeflash -# or -uv pip install codeflash +npx codeflash setup ``` -The Python CLI orchestrates the optimization pipeline, while the npm package provides the JavaScript runtime (test runners, serialization, reporters). +This automatically creates an isolated Python environment — no global installs or manual Python management needed. After setup, all Codeflash commands run through `npx codeflash` which uses the installed binary automatically. +