purple-intern-72952
12/26/2023, 9:11 AMchilly-king-10285
12/26/2023, 9:11 AMchilly-king-10285
12/26/2023, 9:12 AMrelationships.json file with your predefined tuples. The content of this file should follow the structure of a RelationTuple, which defines a relation between an Object and a Subject. More details about the RelationTuple structure can be found [here](https://www.ory.sh/docs/keto/reference/proto-api#relationtuple). Once you have your relationships.json file ready, you can use the Ory CLI to create these relationships in Ory Keto. Here's the command you can use: bash ory create relationships relationships.json This command will create the relationships defined in your relationships.json file in Ory Keto. You can find more details about managing relation tuples using Ory CLI [here](https://www.ory.sh/docs/guides/cli/configure-permission-service#manage-relation-tuples). Please note that to run these operations, you must provide the ID of the project in which you want to manage the tuples using the --project flag. For convenience, you can export the ID of your project as an environment variable and use the variable with the --project flag instead of passing the project ID directly in the command. Here's an example of how you can do this: bash ## List all available projects ory list projects ## Export project ID as env. variable export PROJECT=<ory-project-id> Then you can use the PROJECT environment variable in your command: bash ory create relationships --project=$PROJECT relationships.json This will create the relationships in the specified project.helpful-eve-46197
12/26/2023, 9:17 AMhelpful-eve-46197
12/26/2023, 9:17 AMhelpful-eve-46197
12/26/2023, 9:17 AM