Registry / ai-ml / crewai-cli

crewai-cli

JSON →
library1.14.6pypypiunverified

Command-line interface for CrewAI, enabling scaffolding, running, deploying and managing AI agent crews. Current version 1.14.6, requires Python >=3.10, <3.14. Development is active with frequent releases.

pip install crewai-cli
INSTALL
IMPORT
SIG · CREWAI-CLI
C
crewai-cli
ai-mlpythonv1.14.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Crew
from crewai_cli import Crew
from crewai import Crew
Agent
from crewai_cli import Agent
from crewai import Agent
Task
from crewai_cli import Task
from crewai import Task

Basic usage of CrewAI (core library) to create and run a crew. The CLI itself is used for project scaffolding and deployment via terminal commands.

import os from crewai import Crew, Agent, Task agent = Agent( role='Researcher', goal='Find information', backstory='An expert researcher', llm='gpt-4' ) task = Task( description='Research AI trends', agent=agent ) crew = Crew( agents=[agent], tasks=[task], verbose=True ) result = crew.kickoff() print(result) # For CLI commands, run: crewai create crew my_project
Debug
Known issues
gotchacrewai-cli is purely a CLI tool; all programmatic imports should come from the 'crewai' package. Importing from 'crewai_cli' will fail.
fix
Use 'from crewai import Crew, Agent, Task' instead of any import from 'crewai_cli'.
affects: all
breakingCrewAI v0.30+ changed the 'Crew.kickoff()' method to be async by default. If using synchronous code, it will raise a RuntimeError.
fix
Call 'result = await crew.kickoff_async()' or use 'from crewai import Crew' and set 'crew.kickoff()' inside an async function.
affects: >=0.30.0
deprecatedThe 'crewai create crew' command in CLI versions <1.12 used a different project structure. Newer versions require a 'src/' folder.
fix
Run 'crewai create crew my_project' to get the new structure. Manually migrate old projects by adding a 'src/' directory.
affects: >=1.12.0
Upgrade
Version history
1.14.6latest on PyPI · released May 28, 2026
Audit
Dependencies
crewairequiredCore library needed to define and run crews; CLI is a companion.
pydanticoptionalUsed for configuration validation.
Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
crewai-cli — pip install crewai-cli · libregistry