green-oil-88994
09/14/2023, 1:37 PMketo relation-tuple create
with json-string from STD_IN?
I'm trying keto relation-tuple create - <the json string>
and it does not work.magnificent-energy-493
Here is an example of how to use thecommand with input from STD_IN, but it uses a file as input, not a JSON string:keto relation-tuple create
```keto relation-tuple parse alice_policies --format json | \
keto relation-tuple create - >/dev/null \
&& echo "Successfully created tuple" \
|| echo "Encountered error"```
In this example, thecommand is used to parse theketo relation-tuple parse
file and output JSON. The output is then piped into thealice_policies
command.keto relation-tuple create
If you want to use a JSON string instead of a file, you might try echoing the JSON string and piping it into thecommand, like this:keto relation-tuple create
Copy codeecho '<your JSON string>' | keto relation-tuple create -
Please replacewith your actual JSON string.<your JSON string>
steep-lamp-91158
green-oil-88994
09/14/2023, 4:16 PM