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

Function deploy_create

lib/cli/src/crewai_cli/cli.py:959–967  ·  view source on GitHub ↗

Create a Crew deployment.

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

Source from the content-addressed store, hash-verified

957 help="Upload the project as a ZIP even when it has a git origin remote.",
958)
959def deploy_create(yes: bool, skip_validate: bool, force_zip: bool) -> None:
960 """Create a Crew deployment."""
961 # Backfills a project_id for projects that have [tool.crewai] but no id yet.
962 # Safe in every command the user explicitly invoked: get_or_create_project_id
963 # is a no-op without a pyproject.toml and refuses to create [tool.crewai], so it
964 # never rewrites an unrelated directory. Never called from the SDK during kickoff.
965 get_or_create_project_id()
966 deploy_cmd = DeployCommand()
967 deploy_cmd.create_crew(yes, skip_validate=skip_validate, force_zip=force_zip)
968
969
970@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