Skip to content

Add app scale-to-zero policy commands - #48

Closed
scottcrawford03 wants to merge 1 commit into
block:mainfrom
scottcrawford03:scrawford/apps-scale-to-zero
Closed

scottcrawford03 wants to merge 1 commit into
block:mainfrom
scottcrawford03:scrawford/apps-scale-to-zero

Conversation

@scottcrawford03

Copy link
Copy Markdown
Contributor

Why

Compose now supports owner opt-in to idle app sleep, but the CLI cannot read or change that policy. This blocks authenticated staging validation through the supported client.

What

Add bl apps scale-to-zero get|enable|disable APP_ID with an optional environment override.

How

Use the existing control-plane client, authentication, origin checks and error handling. Preserve the response fields so a saved request is distinct from enabled scaling and successful application.

Risk

Only the new commands send these requests. The server retains ownership, eligibility and fleet-mode enforcement.

Testing

Against bb-block staging, read the live contract and enable two fresh owner-controlled fixtures, one process and one fetch-js. Both returned requested:true, enabled:true, applied:true, and fleet_mode:opt-in.

Generated with Codex

@scottcrawford03
scottcrawford03 marked this pull request as ready for review November 6, 2026 19:45
@scottcrawford03
scottcrawford03 requested a review from a team as a code owner November 6, 2026 19:45
@scottcrawford03

Copy link
Copy Markdown
Contributor Author

🤖 Closing at Scott’s direction: scale-to-zero should become default platform behavior, so owner opt-in/out does not belong in the supported CLI. This command was used only for the bounded staging validation. No CLI release or installation is requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants