New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

keto relation-tuple parse

keto relation-tuple parse​

Parse human readable relationships

Synopsis​

Parse human readable relationships as used in the documentation. Supports various output formats. Especially useful for piping into other commands by using --format json. Ignores comments (lines starting with //) and blank lines.

From file or folder:

keto relation-tuple parse -f tuples1.txt -f tuples2.txt
keto relation-tuple parse -f tuples-dir

Use '-' as filename to read from STD_IN:

keto relation-tuple parse -f -
keto relation-tuple parse [flags]

Options​

-f, --file strings Read relationships from JSON files or directories (use the special filename - for stdin)
--format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "table")
-h, --help help for parse
-q, --quiet Be quiet with output printing.

Options inherited from parent commands​

-c, --config strings Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file.

See also​