Contentful logo

Contentful Community

Utility or Script to view difference between two environments in a space

#1

Wanted to know if there is any Utility or Script to view difference between two environments in a space. Like for e.g we have “master” and one “feature” environment. I am making some content model changes in “feature” and want to merge to “master”. But before that, I want to compare with “master” and make sure, nothing new update happened to that particular content model in “master”.

0 Likes

#2

Quick & dirty way of doing it would be to export the content models of both environments as JSON using Contentful CLI and comparing the two files with diff.

0 Likes

#3

thanks…For seeing the difference, is there any command. When I do, contentful --help , i don’t see any option for diff

0 Likes

#4

@mainak4u.007 diff is not a function of the Contentful CLI. It is a command that comes built-in in most Unix-like operating systems such as Linux or macOS.

0 Likes

#5

oh ok… I am aware of diff in Unix-like OS… Just though of checking if contenful CLI has some command to view the difference in more organized way

0 Likes