Context
Part of the Pricing V5 implementation. Source: strategy/pricing-implementation-checklist.md §4.4, §4.7, §4.8.
AI Feature Gating (§4.4)
Files: src/pkg/cli/generate.go:23-34, src/cmd/cli/command/debug.go:1-64
CanIUse Client (§4.7)
File: src/pkg/cli/client/caniuse.go:12-55
Cloud Account Tracking (§4.8)
CLI does NOT block deployments based on cloud account registration. Cloud accounts auto-register in Portal after deployment.
Error Messages & Cost Estimation (§4.3, §4.6)
Files: src/pkg/cli/client/byoc/baseclient.go:41-85, src/pkg/cli/estimate.go:97-116
🤖 Generated with Claude Code
Context
Part of the Pricing V5 implementation. Source:
strategy/pricing-implementation-checklist.md§4.4, §4.7, §4.8.AI Feature Gating (§4.4)
Files:
src/pkg/cli/generate.go:23-34,src/cmd/cli/command/debug.go:1-64defang generatehelp text to mention limits (Starter: limited, Pro: unlimited)defang debughelp text to mention Pro requirementdefang generateis being deprecated in favor of compose-only generation (separate effort)CanIUse Client (§4.7)
File:
src/pkg/cli/client/caniuse.go:12-55allowed_modes,portal_access_level,ai_enabled,max_cloud_accounts/current_cloud_accountsCloud Account Tracking (§4.8)
CLI does NOT block deployments based on cloud account registration. Cloud accounts auto-register in Portal after deployment.
provider_account_idis sent to Fabric on deployment (PutStackinstacks.go:30-53doesn't include it — must addAccountInfo.AccountID)ErrCloudAccountLimithandling if Fabric enforces hard limitsError Messages & Cost Estimation (§4.3, §4.6)
Files:
src/pkg/cli/client/byoc/baseclient.go:41-85,src/pkg/cli/estimate.go:97-116🤖 Generated with Claude Code