@@ -708,7 +708,7 @@ fga tuple **write** <user> <relation> <object> --store-id=<store-id>
708708* `--condition-context`: Condition context (optional)
709709* `--store-id`: Specifies the store id
710710* `--model-id`: Specifies the model id to target (optional)
711- * `--file`: Specifies the file name, `json`, `yaml` and `csv` files are supported
711+ * `--file`: Specifies the file name, `json`, `jsonl`, ` yaml` and `csv` files are supported
712712* `--max-tuples-per-write`: Max tuples to send in a single write (optional, default=1, or 40 if `--max-rps` is set and this flag is omitted)
713713* `--max-parallel-requests`: Max requests to send in parallel (optional, default=4, or `max-rps/5` if `--max-rps` is set and this flag is omitted)
714714* `--hide-imported-tuples`: When importing from a file, do not output successfully imported tuples in the command output (optional, default=false)
@@ -757,6 +757,14 @@ If using a `yaml` file, the format should be:
757757 object: folder:product-2021Q1
758758` ` `
759759
760+ If using a `jsonl` file, the format should be :
761+
762+ ` ` ` jsonl
763+ {"user": "user:anne", "relation": "owner", "object": "folder:product"}
764+ {"user": "folder:product", "relation": "parent", "object": "folder:product-2021", "condition": {"name": "inOfficeIP", "context": {"ip_addr": "10.0.0.1"}}}
765+ {"user": "user:beth", "relation": "viewer", "object": "folder:product-2021"}
766+ ` ` `
767+
760768If using a `json` file, the format should be :
761769
762770` ` ` json
@@ -845,7 +853,7 @@ fga tuple **delete** <user> <relation> <object> --store-id=<store-id>
845853* `<object>`: Object
846854* `--store-id`: Specifies the store id
847855* `--model-id`: Specifies the model id to target (optional)
848- * `--file`: Specifies the file name, `yaml` and `json ` files are supported
856+ * `--file`: Specifies the file name, `yaml`, `json`, and `jsonl ` files are supported
849857* `--max-tuples-per-write`: Max tuples to send in a single write (optional, default=1)
850858* `--max-parallel-requests`: Max requests to send in parallel (optional, default=4)
851859
0 commit comments