Skip to content

fix(cli): restore [project.scripts] in crewai package for uv tool install#6028

Merged
greysonlalonde merged 3 commits into
mainfrom
gl/fix/restore-crewai-project-scripts
Jun 3, 2026
Merged

fix(cli): restore [project.scripts] in crewai package for uv tool install#6028
greysonlalonde merged 3 commits into
mainfrom
gl/fix/restore-crewai-project-scripts

Conversation

@greysonlalonde
Copy link
Copy Markdown
Contributor

@greysonlalonde greysonlalonde commented Jun 3, 2026

Note

Low Risk
Packaging-only change (three lines in pyproject.toml); no application logic touched.

Overview
Restores the crewai console script on the main crewai PyPI package by re-adding [project.scripts] in lib/crewai/pyproject.toml, mapping crewaicrewai_cli.cli:crewai.

That entry point was missing from the umbrella package, so installs like uv tool install crewai did not put a crewai command on PATH even though crewai-cli is a dependency. Behavior matches the standalone crewai-cli package’s script definition; no runtime or CLI code changes.

Reviewed by Cursor Bugbot for commit 854c6ff. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • New Features
    • Added crewai command-line interface accessible from the terminal.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4c605776-f3e7-4274-ac09-2647f665e7d5

📥 Commits

Reviewing files that changed from the base of the PR and between 7676b09 and 854c6ff.

📒 Files selected for processing (1)
  • lib/crewai/pyproject.toml

📝 Walkthrough

Walkthrough

A new [project.scripts] section is added to pyproject.toml to register the crewai console script entry point, mapping the command to crewai_cli.cli:crewai. This enables users to invoke the CLI directly via the crewai command after package installation.

Changes

CLI Entry Point Registration

Layer / File(s) Summary
CLI script entry point registration
lib/crewai/pyproject.toml
A new [project.scripts] section is introduced, registering the crewai command as a console script entry point that invokes the crewai callable from crewai_cli.cli.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A script entry point takes flight,
The crewai command shines so bright,
Through pyproject's gentle hand,
CLI tools across the land! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: restoring [project.scripts] in pyproject.toml to enable the CLI entry point for the crewai package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch gl/fix/restore-crewai-project-scripts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

lorenzejay
lorenzejay previously approved these changes Jun 3, 2026
Base automatically changed from gl/fix/bump-authlib-cve to main June 3, 2026 16:46
@greysonlalonde greysonlalonde dismissed lorenzejay’s stale review June 3, 2026 16:46

The base branch was changed.

@greysonlalonde greysonlalonde merged commit 68cdd44 into main Jun 3, 2026
56 checks passed
@greysonlalonde greysonlalonde deleted the gl/fix/restore-crewai-project-scripts branch June 3, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants