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