Skip to main content

ory patch project

ory patch project​

Patch the Ory Network project configuration.

Synopsis​

Patch the Ory Network project configuration. Only values specified in the patch will be overwritten. To replace the config use the update command instead.

The format of the patch is a JSON-Patch document. For more details please check:

https://www.ory.com/docs/reference/api#operation/patchProject
https://jsonpatch.com
ory patch project [flags]

Examples​

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

ory patch project ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 \
--replace '/name="My new project name"' \
--delete '/services/identity/config/selfservice/methods/totp/enabled'
--format kratos-config > my-config.yaml

Options​

--add stringArray Add a specific key to the configuration
-f, --file strings Configuration file(s) (file://config.json, https://example.org/config.yaml, ...) to update the project
--format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "table")
-h, --help help for project
--project string The project to use, either project ID or a (partial) slug.
-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
--workspace string The workspace to use, either workspace ID or a (partial) name.
-y, --yes Confirm all dialogs with yes.

Options inherited from parent commands​

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

See also​