rajeshwari nagaraj
rajeshwari nagaraj

Reputation: 21

keycloak file import using admin CLI

I am working on keycloak 4.1.0 using CLI(kcadm).

According to the documentation bin/standalone.sh -Dkeycloak.migration.action=import is the command used to import which tells

syntax not found

Is there any other way this could be done?

Thank you.

Upvotes: 2

Views: 3083

Answers (1)

ravthiru
ravthiru

Reputation: 9623

You can check keycloak documentation here for importing and exporting. Import file should be in json format.

bin/standalone.sh -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=import_data.json -Dkeycloak.migration.strategy=OVERWRITE_EXISTING

Upvotes: 4

Related Questions