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

ParameterTypeDescription
*targets`ProjectFunction
replaceboolReplace an existing registration when supported.
deploy_source`strNone`
environmentstrDeployment 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

ErrorCondition
RebaseWorkflowErrorNo targets were supplied.

On this page