Files
crewAI/lib
Devin AI 91a0774c62 fix: reject reserved script names when creating crews and flows
Fixes #4345

When creating a crew with 'crewai create crew test', the name 'test'
conflicts with the 'test' script entry in pyproject.toml, causing a
duplicate key error.

This change adds validation to reject project names that would conflict
with reserved script names in the generated pyproject.toml:

For crews: run_crew, train, replay, test, run_with_trigger
For flows: kickoff, run_crew, plot, run_with_trigger

The fix provides a clear error message asking users to choose a
different name.

Co-Authored-By: João <joao@crewai.com>
2026-02-03 05:03:31 +00:00
..