CPI Sync is a command-line tool that downloads the content of a Cloud Integration tenant into a folder structure, for example to keep it in Git.
It is no longer maintained. The source code and the releases stay available:
What to use now
Artifact History in Pizug Companion records every change to your integration content on a schedule, compares any two states and downloads an earlier state as a zip.