Grist-ctl: a CLI tool to interact with Grist API

Hello Grist community!

Strasbourg city (Eurométropole de Strasbourg) has developed a command-line interfacde (CLI) for Grist: grist-ctl.

You only need to configure it with your Grist instance URL and your API key. Then you can interact with your orgs, workspaces, documents and users depending on your access rights.

This tool is based on Grist API and developed in Go. It is under free license (MIT) and open to contributions!

Feel free to give us your feedback.

Have a good Grist!

5 Likes

That’s pretty cool! I was wondering if I should add a cli on top of my Pygrister, but now I’ll save myself the trouble and I’ll just use yours :wink:
Great work, thanks

1 Like

@Heloise_Ouvry the CLI is indeed very handy and useful.

I have, if I may, a suggestion: in order to use it to do some automation and use the CLI in scripts it would be nice to have the option to output a machine-readable format - JSON for example - instead of the tables, that are very easy to look at but not so easy to parse.

Thanks for the good work anyways!

Fabio

Hi @Fabio_Moratti !

That’s a very good idea, I’ve created an issue to follow the action: Output a machine-readable format (ex: JSON) · Issue #30 · Ville-Eurometropole-Strasbourg/grist-ctl · GitHub

Feel free to create one if you need in the future!

Hi @Fabio_Moratti the issue has been solved, you can now have JSON output!

1 Like

Thanks, @Heloise_Ouvry: I promptly subscribed to the issue you mentioned, so I got the notification for GitHub.
Very appreciated, I’ll let you know if I have any feedback.