Skip to content

Commit fdf74e2

Browse files
authored
Merge pull request #1948 from codeflash-ai/docs/codeflash-installation-for-js-and-ts
docs: Correct setup for js/ts projects
2 parents 857673d + f8285e1 commit fdf74e2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/getting-started/javascript-installation.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,15 @@ bun add --dev codeflash
7171
</Tip>
7272

7373
<Info>
74-
**Codeflash also requires a Python installation** (3.9+) to run the CLI optimizer. Install the Python CLI globally:
74+
**One-time setup required.** The Codeflash optimizer runs on Python behind the scenes. After installing the npm package, run:
7575

7676
```bash
77-
pip install codeflash
78-
# or
79-
uv pip install codeflash
77+
npx codeflash setup
8078
```
8179

82-
The Python CLI orchestrates the optimization pipeline, while the npm package provides the JavaScript runtime (test runners, serialization, reporters).
80+
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.
8381
</Info>
82+
8483
</Step>
8584

8685
<Step title="Generate a Codeflash API Key">

0 commit comments

Comments
 (0)