Skip to main content
Version: 2.4.7

write Command

The write command outputs data to a file.

Usage

write <file_name>

Parameters

ParameterDescriptionRequired?Default Value
file_nameFile name✔️N/A

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.