rebase.deploy
Deploy one or more Rebase targets.
Signature
rebase.deploy(
*targets: Project | Function | Workflow | Model | ASGIApp,
replace: bool = False,
deploy_source: str | None = None,
environment: str = "dev",
) -> Project | Function | Workflow | Model | ASGIApp | list[Any]Parameters
| Parameter | Type | Description |
|---|---|---|
*targets | `Project | Function |
replace | bool | Replace an existing registration when supported. |
deploy_source | `str | None` |
environment | str | Deployment environment. Defaults to dev. |
Targets with endpoint=rb.endpoint(...) deploy or update their endpoint as part of the same call.
Workspace environment policies still apply. Direct SDK deploys to GitOps-protected environments such as prod are rejected by the API; use rebase deploy <file> --env prod from the connected GitHub repository to create a GitOps deployment request.
Raises
| Error | Condition |
|---|---|
RebaseWorkflowError | No targets were supplied. |

