Skip to main content

ory patch identity-config

ory patch identity-config

Patch an Ory Cloud project's identity config


Patch an Ory Cloud project's identity configuration. Only values specified in the patch will be overwritten. To replace the config use the update command instead.

Compared to the patch project command, this command only updates the identity service configuration and also only returns the identity service configuration as a result. This command is useful when you want to import an Ory Kratos config as well, for example. This allows for shorter paths when specifying the flags

ory patch identity-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 \
--replace '/selfservice/methods/password/enabled=false'

when compared to the patch project command:

ory patch project ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 \
--replace '/services/identity/config/selfservice/methods/password/enabled=false'

The format of the patch is a JSON-Patch document. For more details please check:
ory patch identity-config <project-id> [flags]


$ ory patch identity-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 \
--add '/courier/smtp={"from_name":"My new email name"}' \
--replace '/selfservice/methods/password/enabled=false' \
--remove '/selfservice/methods/totp/enabled' \
--format json-pretty

"selfservice": {
"methods": {
"password": { "enabled": false }
// ...


      --add stringArray       Add a specific key to the configuration
-f, --file strings Configuration file(s) (file://config.json,, ...) to update the project
--format string Set the output format. One of table, json, yaml, and json-pretty. (default "default")
-h, --help help for identity-config
-q, --quiet Be quiet with output printing.
--remove stringArray Remove a specific key from the configuration
--replace stringArray Replace a specific key in the configuration
-y, --yes Confirm all dialogs with yes.

Options inherited from parent commands

  -c, --config string   Path to the Ory Cloud configuration file.