Skip to content

Add licence activate/get and beta bootstrap-first-org commands#441

Open
fhacloid wants to merge 1 commit into
developfrom
feat/licence-bootstrap-commands
Open

Add licence activate/get and beta bootstrap-first-org commands#441
fhacloid wants to merge 1 commit into
developfrom
feat/licence-bootstrap-commands

Conversation

@fhacloid
Copy link
Copy Markdown
Contributor

@fhacloid fhacloid commented May 19, 2026

Summary

  • Add cy organization licence activate and cy organization licence get, wrapping existing ActivateLicence middleware and a new GetLicence helper.
  • Add cy beta bootstrap-first-org, exposing InitFirstOrg for first-install / scripted console bootstrap (signup → login → org → licence, optional admin API key + credential).
  • Shared flag helpers in internal/cyargs for licence key/file/stdin and bootstrap user/password inputs.
  • Fix missing middleware imports in delete-option middleware tests so the package compiles after the recent --force delete work landed on develop.

Test plan

  • cy organization licence activate --org X --key Y then cy organization licence get --org X
  • Re-run activate with a different key and confirm overwrite via get
  • activate from --key-file and from stdin pipe
  • cy beta bootstrap-first-org with all flags on a fresh install; re-run and confirm idempotency
  • make lint && make test with API_LICENCE_KEY set and backend up (make be-reset)

Expose org licence management and first-install bootstrap on the CLI,
wrapping existing middleware (InitFirstOrg, ActivateLicence) and a new
GetLicence helper. Includes shared cyargs helpers, middleware and e2e
tests, and a changelog entry.

testcfg still provisions via middleware.InitFirstOrg on be-reset; the
CLI bootstrap path is kept commented in pkg/testcfg/bootstrap.go after
staging validation showed in-process cobra bootstrap polluted viper state
for some middleware tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fhacloid fhacloid force-pushed the feat/licence-bootstrap-commands branch from 2bc79d7 to 9a6fbf2 Compare May 20, 2026 08:07
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