rebase environment

Inspect and manage workspace deployment environment policies.

Synopsis

rebase environment list
rebase environment protect prod --allowed-branch main
rebase environment unprotect dev

Subcommands

SubcommandDescription
listList environment policies for the active workspace.
protectRequire GitOps deployment requests for an environment.
unprotectAllow direct deploys for an environment.

Defaults

New workspaces use these policies:

EnvironmentDeploy modeProtected
devdirectNo
staginggitopsYes
prodgitopsYes

Protected environments reject direct deploy mutations in the Rebase API. Use rebase deploy <file> --env <environment> from the connected GitHub repository to create a GitOps deployment request.

Options

protect

OptionTypeDescription
--allowed-branchstrBranch allowed for GitOps reconciliation. Can be passed more than once. Defaults to main and master.
--jsonboolPrint the updated policy as JSON.

unprotect

OptionTypeDescription
--jsonboolPrint the updated policy as JSON.
CommandPurpose
rebase deployDeploy directly or create a GitOps deployment request based on environment policy.
rebase connect githubConnect the workspace repository required for protected deploys.

On this page