Skip to content

mw dev keycloak

Releasev0.35.0 · cfeceb67

Keycloak is an open source identity manager that supports OpenID Connect and SAML single sign-on.

Use the service commands to create, start, stop, or destroy its container. The add, delete, list, and get subcommands manage realms, clients, and users, or retrieve their metadata. Each subcommand’s --help describes its arguments.

For direct administration, open a shell in the running container:

Terminal window
mw dev keycloak exec -- bash

Use /opt/keycloak/bin/kcadm.sh there for operations beyond the built-in subcommands. See the Keycloak Admin CLI guide for its syntax.

Relevant extensions for this service include:

For a workflow creating a realm, client, and user and configuring MediaWiki’s OpenID Connect login, see mw help guides dev keycloak.

-c, --context <string>
Development context to use (overrides CONTEXT) Default: default.
--help
Help for this command
--no-interaction
Do not ask any interactive questions
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.