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 
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
             
            
              
              
              1 Like
            
           
          
            
            
              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.
             
            
              
              
              
            
           
          
            
            
              Latest news from grist-ctl !
Some new features regarding organizations (or team sites):
- gristctl create org <name> <domain>: to create a new organization
- gristctl delete org <id> <name>: to delete an organization
- gristctl get org <id> usage: to get some usage stats about an organization
As always feel free to give us feedback or contribute directly!
             
            
              
              
              1 Like
            
           
          
            
            
              Considering I am using a LOT Gemini CLI, I wonder if it would be possible to make Gemini CLI use the Grist CLI
             
            
              
              
              
            
           
          
            
            
              it can´t be used with the Grist Electron right? I think the Electron doesn´t even exposes an API…