Files
crewAI/lib/cli
Joao Moura 2d82896d71 fix: address PR review comments — lint, threshold, dedup, agents_dir
- Remove redundant local `import asyncio` in executor.py that caused
  ruff F823 (local variable referenced before assignment)
- Clear progress state before creating Live display (fixes flash)
- Use threshold-based passed in _save_run_results so persisted results
  match CLI output
- Pass agents_dir to load_agent_from_definition in _train_new_agents
  so coworker references resolve correctly
- Deduplicate verbose/non-verbose benchmark execution blocks into
  single context-manager expression

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-14 16:48:17 -04:00
..
2026-05-13 02:54:13 +08:00

crewai-cli

CLI for CrewAI — scaffold, run, deploy and manage AI agent crews without installing the full framework.

Installation

pip install crewai-cli

This pulls in crewai-core (shared utilities) but not the crewai framework itself, so commands that don't need a crew loaded — crewai version, crewai login, crewai org list, crewai config *, crewai traces *, crewai create, crewai template * — work standalone.

Commands that load a user's crew or flow (crewai run, crewai train, crewai test, crewai chat, crewai replay, crewai reset-memories, crewai deploy push, crewai tool publish) require crewai to be installed in the project's environment. They print a clear error if it is missing.

To install both at once:

pip install crewai[cli]