8000 Accept theme type as a positional argument in create-keycloak-theme by edewit · Pull Request #54228 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Accept theme type as a positional argument in create-keycloak-theme - #54228

Open
edewit wants to merge 2 commits into
keycloak:mainfrom
edewit:fix/create-keycloak-theme-type-args
Open

edewit wants to merge 2 commits into
keycloak:mainfrom
edewit:fix/create-keycloak-theme-type-args

Conversation

@edewit
@edewit edewit commented Oct 21, 2026
Copy link
Copy Markdown
Contributor

npm create treats -t as --tag, so the type was passed as a second
positional and Commander failed. Also prompt when type is omitted.

Closes #54227

Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com

npm create treats -t as --tag, so the type was passed as a second
positional and Commander failed. Also prompt when type is omitted.

Closes keycloak#54227

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 11:15
@edewit
edewit requested review from a team as code owners October 21, 2026 11:15
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Closing stdin during the prompt exits successfully without creating a project.

1 open issue
What changed in this PR

Updates the theme generator to accept a positional theme type, addressing #54227 and npm’s handling of -t.

Changes:

  • Accepts positional types and prompts when none is supplied.
  • Updates documentation and help examples.
  • Propagates template clone failures.
File Description
js/​apps/​create-keycloak-theme/​README.md Documents positional types and npm-compatible options.
js/​apps/​create-keycloak-theme/​create.js Adds type parsing, prompting, help updates, and clone error propagation.

Review effort: Balanced

Comment thread js/apps/create-keycloak-theme/create.js Resolved
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 15:07
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documented admin workflow cannot resolve @keycloak/keycloak-admin-ui because the generated project installs only the account UI and uses the account-specific development command.

1 open issue
1 resolved since last review

Review effort: Balanced

```

This will create a new project called `my-project` with an account ui based on the template from the quickstarts repo.
This will create a new project called `my-project` with an admin ui based on the template from the quickstarts repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create-keycloak-theme fails with too many arguments when using -t via npm create

2 participants

0