write
Command
The write
command outputs data to a file.
Usage
write <file_name>
Parameters
Parameter | Description | Required? | Default Value |
---|---|---|---|
file_name | File name | ✔️ |
Examples
Select 3 resources and write them to out.json in JSON format
> query all limit 3 | format --json | write out.json
Received a file out.json, which is stored to ./out.json.
Select the root node and traverse 2 levels deep, and write the result as dot graph to out.dot
> query --with-edges id(root) -[0:2]-> | format --dot | write out.dot
Received a file out.dot, which is stored to ./out.dot.