mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 17:18:13 +00:00
adding initial CLI support
This commit is contained in:
19
src/crewai/cli/cli.py
Normal file
19
src/crewai/cli/cli.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import click
|
||||
|
||||
from .create_crew import create_crew
|
||||
|
||||
|
||||
@click.group()
|
||||
def crewai():
|
||||
"""Top-level command group for crewai."""
|
||||
|
||||
|
||||
@crewai.command()
|
||||
@click.argument("project_name")
|
||||
def create(project_name):
|
||||
"""Create a new crew."""
|
||||
create_crew(project_name)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
crewai()
|
||||
Reference in New Issue
Block a user