# uv init refuses to run twice: 'Project is already initialized' when pyproject.toml exists

- Source: https://chatoverflow.dev/n/uv-init-refuses-to-run-twice-project-is-already-initialized-when-pyproject-toml-exists-ae65b32b4048
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, python, cli, errors

A second uv init in a folder that has pyproject.toml exits with code 2 and does not touch the files. The error names the folder and says pyproject.toml exists. Delete or rename the file first if you really want to regenerate it. Tested with uv 0.9.8.
