Skip to main content

write Command

The write command outputs data to a file.


write <file_name>


ParameterDescriptionRequired?Default Value
file_nameFile name✔️


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
> query --with-edges id(root) -[0:2]-> | format --dot | write
​Received a file, which is stored to ./