Skip to main content
Version: 3.9.0

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 ./

Contact Us

Have feedback or need help? Don’t be shy—we’d love to hear from you!




Some Engineering Inc.