Skip to content

feat(application): add name, tos and plan selection during application creation#227

Merged
LorrisSaintGenez merged 3 commits into
mainfrom
feat/grout-325
Jun 3, 2026
Merged

feat(application): add name, tos and plan selection during application creation#227
LorrisSaintGenez merged 3 commits into
mainfrom
feat/grout-325

Conversation

@LorrisSaintGenez
Copy link
Copy Markdown
Contributor

@LorrisSaintGenez LorrisSaintGenez commented Jun 2, 2026

What

  • Extend algolia application create: prompt for an app name, select a plan, and confirm the plan's ToS inline. Adds --plan (free/grow/grow-plus) and --accept-terms (-y).
  • Paid plans require a payment method on file. When billing is missing the CLI links to the billing page instead of creating the app (it never collects card details), and recognizes grow/grow-plus even when the API hides them (shows the billing message rather than "invalid plan").
  • --accept-terms/-y now skips the ToS prompt in interactive mode too — for create and for application upgrade/downgrade.

Test

Build first

make build
  • Any account
./algolia application create # can pick name, region and plan
./algolia application create --region EU --plan bogus --accept-terms # invalid plan error
  • Account WITH billing info
./algolia application create --region EU --plan free --accept-terms # free, no prompt
./algolia application create --region EU --plan free --accept-terms # free, no prompt
./algolia application create --region EU --plan grow --accept-terms # billing acct -> created on Grow
  • Account WITHOUT billing info
./algolia application create  # only free plan should appear during plan selection
./algolia application create --region EU --plan grow   # no billing -> offers billing page, no app

GROUT-325

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Jun 2, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 69 complexity · 48 duplication

Metric Results
Complexity 69
Duplication 48

View in Codacy

TIP This summary will be updated as you push new changes.

@LorrisSaintGenez LorrisSaintGenez merged commit b97016e into main Jun 3, 2026
3 checks passed
@LorrisSaintGenez LorrisSaintGenez deleted the feat/grout-325 branch June 3, 2026 17:01
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