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

Function deploy_push

lib/cli/src/crewai_cli/cli.py:993–1001  ·  view source on GitHub ↗

Deploy the Crew.

(uuid: str | None, skip_validate: bool, force: bool)

Source from the content-addressed store, hash-verified

991 ),
992)
993def deploy_push(uuid: str | None, skip_validate: bool, force: bool) -> None:
994 """Deploy the Crew."""
995 # Backfills a project_id for projects that have [tool.crewai] but no id yet.
996 # Safe in every command the user explicitly invoked: get_or_create_project_id
997 # is a no-op without a pyproject.toml and refuses to create [tool.crewai], so it
998 # never rewrites an unrelated directory. Never called from the SDK during kickoff.
999 get_or_create_project_id()
1000 deploy_cmd = DeployCommand()
1001 deploy_cmd.deploy(uuid=uuid, skip_validate=skip_validate, force=force)
1002
1003
1004@deploy.command(name="validate")

Callers

nothing calls this directly

Calls 3

deployMethod · 0.95
get_or_create_project_idFunction · 0.90
DeployCommandClass · 0.90

Tested by

no test coverage detected