Add licence activate/get and beta bootstrap-first-org commands#441
Open
fhacloid wants to merge 1 commit into
Open
Add licence activate/get and beta bootstrap-first-org commands#441fhacloid wants to merge 1 commit into
fhacloid wants to merge 1 commit into
Conversation
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>
2bc79d7 to
9a6fbf2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cy organization licence activateandcy organization licence get, wrapping existingActivateLicencemiddleware and a newGetLicencehelper.cy beta bootstrap-first-org, exposingInitFirstOrgfor first-install / scripted console bootstrap (signup → login → org → licence, optional admin API key + credential).internal/cyargsfor licence key/file/stdin and bootstrap user/password inputs.middlewareimports in delete-option middleware tests so the package compiles after the recent--forcedelete work landed ondevelop.Test plan
cy organization licence activate --org X --key Ythency organization licence get --org Xactivatewith a different key and confirm overwrite viagetactivatefrom--key-fileand from stdin pipecy beta bootstrap-first-orgwith all flags on a fresh install; re-run and confirm idempotencymake lint && make testwithAPI_LICENCE_KEYset and backend up (make be-reset)