Outputs the results of dvc diff

Hello,
I’m trying to find the way I get the results of dvc diff as a file (such as .json).

“dvc diff” command only shows the difference between two commits(or tags) in my ubuntu display and I don’t know how to save the displayed results which afterwards I can process like in jupyter notebook.

Could you tell me how I can save the dvc diff results using ubuntu command?

Thanks you so much.

Hi @schakal. dvc diff has a --json flag which returns the output in a json format.

Please take a look at an example in https://dvc.org/doc/command-reference/diff#example-using-different-output-formats for the structure of the JSON output.

Thanks.