CrewAI CLI Cheatsheet - crewai Multi-agent Framework Full Reference

CrewAI splits multi-agent collaboration into two shapes that differ not in capability but in determinism. A crew hands a set of roles and tasks to the framework to orchestrate; a flow is code you write yourself, defining steps and branches. The first saves you code at the cost of an execution path that is not guaranteed identical between runs; the second costs a little more code and buys reproducibility, debuggability and breakpoints. Which one to pick depends on whether the process itself must be controlled: content production and research summaries, where a correct result is enough, usually suit a crew, while anything involving approval, fallback and retry generally needs a flow. This sheet covers install and creation, running and training, tools and maintenance, and help and troubleshooting, noting that create crew and create flow generate two entirely different directory layouts that should not be mixed. Reach for it when behaviour looks wrong: first confirm which shape you are running, then consider reset-mem, because a stale memory file is the real reason behind tasks edits that appear to do nothing.

AI CLI·21 commands·Last updated 2026-09-10
crewaiaimulti-agentagentcliframeworkautomation

Install and Create 4

pip install crewai
Install CrewAI
crewai create crew my_crew
Scaffold a crew project
crewai create flow my_flow
Scaffold a flow project
crewai --help
List all commands

Run and Train 6

crewai run
Run the current crew
crewai train
Train the crew
crewai flow kickoff
Kick off a flow
crewai flow plot
Visualize the flow
crewai install
Install project deps
crewai run --help
run flags

Tooling and Maintenance 8

crewai tool create my_tool
Create a custom tool
crewai tool list
List available tools
crewai tool --help
tool subcommands
crewai reset-mem
Clear crew memory
crewai version
Show version
crewai create crew --help
create flags
crewai train --help
train flags
crewai flow --help
flow flags

Help and Troubleshoot 3

crewai create flow --help
flow create flags
crewai tool create --help
tool create flags
crewai install --help
install flags

Tips

  • crewai create crew generates a runnable scaffold; edit agents and tasks before run.
  • flow is lighter than crew and more deterministic; use flow for simple pipelines.
  • reset-mem helps when behavior is odd, clearing stale memory interference.

FAQ

How is CrewAI different from LangGraph?

CrewAI centers on role-based multi-agent collaboration with clear conventions; LangGraph orchestrates arbitrary state machines via graphs, more flexible but more boilerplate.

Must I write Python?

Core agents and tasks are defined in Python, but the crewai CLI handles most engineering tasks like create, run, and train.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Sep 10, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us