Skip to content

feat(cli): V5 tier display names + error messages#2088

Draft
simple-agent-manager[bot] wants to merge 6 commits into
mainfrom
feature/v5-cli-tier-display
Draft

feat(cli): V5 tier display names + error messages#2088
simple-agent-manager[bot] wants to merge 6 commits into
mainfrom
feature/v5-cli-tier-display

Conversation

@simple-agent-manager
Copy link
Copy Markdown
Contributor

Summary

Updates all user-facing tier display names and pricing messages in the CLI to match V5 pricing.

Tier Display Name Changes

Proto Enum Old Display New Display
HOBBY (1) Hobby Starter
PERSONAL (2) Personal Starter (Legacy)
PRO (3) Pro Pro
TEAM (4) Team Enterprise
EXPIRED (-1) Unknown Expired
UNSPECIFIED (0) (fell through to Hobby) Starter

Other Changes

  • GPU error: Now says "GPU access requires a Pro subscription ($49/mo). Upgrade at https://portal.defang.io/pricing"
  • Estimate modes: Added tier requirement lines (Affordable: all tiers, Balanced: Pro $49/mo, HA: Enterprise $499/mo)
  • Generate command: Short description mentions Starter limited generations/month, Pro unlimited
  • Debug command: Short description mentions Pro requirement for full debugging
  • whoami output: SubscriberTier field now shows human-readable V5 names instead of proto enum strings

Proto enums unchanged

Wire values (HOBBY=1, PERSONAL=2, PRO=3, TEAM=4) and proto enum names are NOT modified. This is display-only.

Test proof

$ go vet ./...     # passes (no output)
$ go build ./...   # passes (no output)
$ go test -short ./... | grep FAIL   # no failures

All existing tests pass including the updated golden output in estimate_test.go.

Test plan

  • defang whoami shows "Starter" for hobby-tier accounts
  • GPU deployment error shows new message with pricing URL
  • defang estimate output includes tier requirement lines
  • Verify backward compatibility with older Fabric versions (enum values unchanged)

🤖 Generated with Claude Code

Rename user-facing tier strings to match V5 pricing:
- HOBBY → Starter
- PERSONAL → Starter (Legacy)
- PRO → Pro (unchanged)
- TEAM → Enterprise
- EXPIRED → Expired (new)

Update error messages, deployment mode descriptions, and command
help text to reference new tier names and pricing. Proto enum values
remain unchanged for backward compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
raphaeltm and others added 5 commits May 7, 2026 09:07
….io URL

- Remove dollar amounts from estimate mode summaries and GPU error
- Use s.defang.io/subscription consistently (matching Fabric)
- Prices change; tier names are stable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removed mention of Pro subscription requirement from debug command description.
The legacy tier was called Personal, not Starter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raphaeltm
Copy link
Copy Markdown
Collaborator

~/d/d/s/s/mastra-extended ❯❯❯ defang whoami                                                                                                                         main ⬇
 * Using the "beta" stack on auto from fallback stack

WORKSPACE         SUBSCRIBERTIER  NAME              EMAIL                  PROVIDER  REGION
chewy-tech-demos  Starter         chewy-tech-demos  tech-demos@gochewy.io  defang    us-west-2  
~/d/d/s/s/mastra-extended ❯❯❯ defang workspaces                                                                                                                     main ⬇

NAME              CURRENT
chewy-tech-demos    
ctd-tmp-org         
~/d/d/s/s/mastra-extended ❯❯❯ defang --workspace=ctd-tmp-org whoami                                                                                                 main ⬇
 * Using the "beta" stack on auto from fallback stack

WORKSPACE    SUBSCRIBERTIER  NAME              EMAIL                  PROVIDER  REGION
ctd-tmp-org  Pro             chewy-tech-demos  tech-demos@gochewy.io  defang    us-west-2  
~/d/d/s/s/mastra-extended ❯❯❯ defang version                                                                                                                        main ⬇
Defang CLI:    dfeae445-dirty
Latest CLI:    v3.8.0
Defang Fabric: v0.6.0-1673-g321f4900
~/d/d/s/s/mastra-extended ❯❯❯              

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