Skip to content

feat(cli): add --profile flag to cluster up#14

Merged
hbrombeer merged 1 commit intomainfrom
feat/cluster-up-profile-flag
Apr 28, 2026
Merged

feat(cli): add --profile flag to cluster up#14
hbrombeer merged 1 commit intomainfrom
feat/cluster-up-profile-flag

Conversation

@hbrombeer
Copy link
Copy Markdown
Member

Summary

`grounds cluster up` previously had no way to request a platform-profile vCluster. The forge endpoint accepts `?profile=minigame|platform`; the CLI silently dropped the parameter, so users hit `unknown flag: --profile` even though forge supports it.

Changes

  • `cmd/grounds/commands/cluster/up.go`: register `--profile` flag, validate (`minigame` | `platform` | empty), document the immutable-profile rule in `--help`
  • `internal/api/cluster.go`: `ClusterUp(ctx, profile)` URL-encodes the profile into the POST query string

Test plan

  • `go build ./...` succeeds
  • `go test ./...` green (no new tests; existing api tests still pass)
  • `grounds cluster up --help` shows the new flag
  • `grounds cluster up --profile=invalid` returns `invalid --profile "invalid"`
  • `grounds cluster up --profile=platform` POSTs to `/v1/cluster/up?profile=platform`

🤖 Generated with Claude Code

The flag was undocumented in the CLI but accepted by forge's
/v1/cluster/up endpoint. Without it, users couldn't request a
platform-profile vCluster from the command line.

Validates the value client-side ("minigame" | "platform" | empty),
URL-encodes it into the POST query string, and surfaces the immutable-
profile rule in --help text so the workflow is discoverable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hbrombeer hbrombeer merged commit fa5159d into main Apr 28, 2026
5 checks passed
@hbrombeer hbrombeer deleted the feat/cluster-up-profile-flag branch April 28, 2026 22:26
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.

1 participant