All Patterns apps are fully defined by code. You can download the app files at any time in the UI in the file view:
Local version control
For more robust version control, and to develop on the files locally, use the Patterns devkit.
To back-up an existing app from the UI, you can download it with the Patterns CLI:
patterns download [app id or slug]
The app id and slug can be found in the URL: https://studio.patterns.app/graph/[app id]/[app slug].
This command downloads the app files to a folder with the graph slug name. From there you can backup the files with git or other vsc of your choice, or edit the files locally.
To push subsequent local changes up to the app again, run the
patterns upload [app slug or path to app folder]
If conflicting changes exist on the server, the command will fail. To see the diff, run:
patterns upload [app slug or path to app folder] --diff
And then once you've reviewed the changes, you can force the upload with:
patterns upload [app slug or path to app folder] --force