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

Skip to main content

keto relation-tuple create

keto relation-tuple create​

Create relationship tuples from inline arguments or JSON files and folders

Synopsis​

Create relationship tuples from inline arguments or JSON files and folders. Inline example:

keto relation-tuple create User:alice owner Doc:readme

From file or folder:

keto relation-tuple create -f relationships1.json -f relationships2.json
keto relation-tuple create -f relationships-dir1 -f relationships-dir2

If a directory is provided, all JSON files inside it are processed. Use '-' as filename to read from STD_IN:

keto relation-tuple create -f -
keto relation-tuple create <subject_namespace>:<subject_id> <relation> <object_namespace>:<object_id> [flags]

Options​

--authority string Set the authority header for the remote gRPC server.
--block Block until the connection is up.
-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 create
--insecure-disable-transport-security Disables transport security. Do not use this in production.
--insecure-skip-hostname-verification Disables hostname verification. Do not use this in production.
-q, --quiet Be quiet with output printing.
--read-remote string Remote address of the read API endpoint. (default "127.0.0.1:4466")
--write-remote string Remote address of the write API endpoint. (default "127.0.0.1:4467")

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​