ory update permission-config
ory update permission-config
Update Ory Permissions configuration of the specified Ory Network project.
Synopsis
Update Ory Permissions configuration of the specified Ory Network project. All values
of the permission service will be overwritten. To update individual settings use the patch
command instead.
Compared to the update project
command, this command updates only the Ory Permissions configuration
and returns the configuration as a result. This command is useful when you want to import configuration from
self-hosted Ory Keto to Ory Network.
The full configuration payload can be found at:
https://www.ory.sh/docs/reference/api#operation/updateProject.
This command expects the contents of the /services/permission/config
key, so for example:
{
"namespaces": [
{
"name": "files",
"id": 2
},
// ...
]
}
ory update permission-config [project-id] [flags]
Examples
$ ory update permission-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 \
--file /path/to/config.json \
--file /path/to/config.yml \
--file https://example.org/config.yaml \
--file base64://<json> \
--format json
{
"namespaces": [
{
"name": "files",
"id": 2
},
// ...
]
}
$ ory update permission-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 \
--file /path/to/keto-config.yaml \
--format yaml
namespaces:
- name: files
# ...
Options
-f, --file strings Configuration file(s) (file://config.json, https://example.org/config.yaml, ...) to update the permission config
--format string Set the output format. One of default, json, yaml, json-pretty and jsonpath. (default "default")
-h, --help help for permission-config
-q, --quiet Be quiet with output printing.
-y, --yes Confirm all dialogs with yes.
Options inherited from parent commands
-c, --config string Path to the Ory Network configuration file.
SEE ALSO
- ory update - Update resources