Skip to content

[pull] master from cube-js:master - #670

Merged
pull[bot] merged 2 commits into
code:masterfrom
cube-js:master
Aug 16, 2026
Merged

[pull] master from cube-js:master#670
pull[bot] merged 2 commits into
code:masterfrom
cube-js:master

Conversation

@pull

@pull pull Bot commented Aug 16, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

paveltiunov and others added 2 commits August 16, 2026 10:02
#11433)

* feat(cube-cli): add data-model enable-branch / disable-branch commands

Expose the per-branch staging-environment toggle (Settings → Staging
Environments in the UI) through the CLI, so keeping a shared branch's
staging environment always active can be scripted from CI:

    cube data-model enable-branch  DEPLOYMENT_ID BRANCH
    cube data-model disable-branch DEPLOYMENT_ID BRANCH

Both call the new `PUT /build/api/v1/deployments/{id}/branches/staging-environment`
endpoint with `{ branchName, enabled }`, mirroring how `embed
enable-dashboard` / `disable-dashboard` drive their boolean endpoint.

`data-model branches` now reports the state as an ENABLED column. Its
previous DEFAULT / CURRENT columns read `isDefault` / `isCurrent`, which
the branches endpoint does not return, so they always rendered empty;
they are replaced with PARENT and ENABLED, which it does return.

Docs: CLI reference (command table + Git-workflow section), the new
endpoint in the Control Plane API reference, and a pointer from the
staging-environments section of the deployment-environments page.

* docs(cube-cli): fix the staging-env doc comment and drop legacy naming

Review follow-ups on the enable-branch / disable-branch commands.

`cube environments list` takes the deployment id as a required
positional, so the doc comment's `cube environments list --type staging`
would fail as written; the success message printed by the command
already had it right. Spelled the argument in the doc comment too.

`docs-mintlify/CLAUDE.md` lists "Cube Cloud" as legacy naming for new
content. The docs added in this PR say "the Cube UI", but the
`disable-branch` help string and the module doc still said "Cube Cloud"
— and `--help` is user-facing, so it should match. Both now say "the
Cube UI".

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.