MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / deploy_create

Function deploy_create

lib/cli/src/crewai_cli/cli.py:952–960  ·  view source on GitHub ↗

Create a Crew deployment.

(yes: bool, skip_validate: bool, force_zip: bool)

Source from the content-addressed store, hash-verified

950 help="Upload the project as a ZIP even when it has a git origin remote.",
951)
952def deploy_create(yes: bool, skip_validate: bool, force_zip: bool) -> None:
953 """Create a Crew deployment."""
954 # Backfills a project_id for projects that have [tool.crewai] but no id yet.
955 # Safe in every command the user explicitly invoked: get_or_create_project_id
956 # is a no-op without a pyproject.toml and refuses to create [tool.crewai], so it
957 # never rewrites an unrelated directory. Never called from the SDK during kickoff.
958 get_or_create_project_id()
959 deploy_cmd = DeployCommand()
960 deploy_cmd.create_crew(yes, skip_validate=skip_validate, force_zip=force_zip)
961
962
963@deploy.command(name="list")

Callers

nothing calls this directly

Calls 3

create_crewMethod · 0.95
get_or_create_project_idFunction · 0.90
DeployCommandClass · 0.90

Tested by

no test coverage detected