Create a Crew deployment.
(yes: bool, skip_validate: bool, force_zip: bool)
| 950 | help="Upload the project as a ZIP even when it has a git origin remote.", |
| 951 | ) |
| 952 | def 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") |
nothing calls this directly
no test coverage detected