I have published a CLI (Command Line Interface):
For now it only contains the feature to export content to JSON or CSV, but more features will come or when they are requested.
The CLI will provide an integrated help but here are some hints how to use it. The examples are for windows but I also published the binaries for OSX and Linux:
// Add an app to the configuration file
sq.exe config add squidex-website CLIENT_ID CLIENT_SECRET
// Show all apps
sq.exe config view
// Remove an app
sq.exe config remove squidex-website
// Switch to another app
sq.exe config use-app other-app
// Export schema to a single JSON
sq.exe content export blog
// Export schema with one file per content.
sq.exe content export blog -m
// Export schema to CSV
sq.exe content export blog -fields Id,Date=Created,Slug=data.title.iv,Text (English)=data.text.en
Why a CLI?
- It takes so much time to write a good UI for it
- it is easier to integrate a CLI in automated processes, such as nightly backups
Why is it so big?
It is a restriction of .NET Core and unfortunately there is no easy way to create a single file. I could write it in GO, but I would need much more time.