tryretool / retool-cli

MIT License
20 stars 0 forks source link

Feature Request: Allow importing / exporting Toolscript from an app #18

Closed amrawadk closed 4 months ago

amrawadk commented 4 months ago

exporting tool script is an action I need to use often when I need to search across the app (both components and raw queries), having it accessible through the CLI would immensely improve the flow.

PeteTheHeat commented 4 months ago

Hey @amrawadk, very valid request!

I was able to easily add JSON exporting in https://github.com/tryretool/retool-cli/commit/f064de7e033a5aa1c689963ac4adde4db2812165. If you update to the latest version (1.0.26) via npm install -g retool-cli, you should be able to use the new command.

Screenshot 2024-02-29 at 2 48 53 PM

Unfortunately, toolscript exporting is a little trickier, that code is more closely tied to the Retool frontend. Hope JSON exporting is enough for your use case!