I'm working on setting up a continuous deployment (CD) workflow using GitHub Actions to deploy and sync a custom component across all of my Retool Cloud tenants. I'm using the retool-ccl
CLI to manage custom component revisions and deployments.
However, I’ve run into a few issues that I’d appreciate some help with:
1.Non-Interactive Authentication:
The retool-ccl
CLI currently prompts for interactive login and tenant selection, which isn't suitable for CI/CD environments.
- Is there a way to authenticate using an access token or service account non-interactively?
- Can we specify the target tenant(s) or spaces via command-line flags or environment variables?
- Using the Retool API for Custom Component Revisions:
I saw that it's possible to use the Retool API to create a new revision for a custom component, but the documentation isn’t very clear on what should be sent in the files
property.
- Could you provide an example or further explanation of the expected structure of the
files
field? - In addition when new revision created is it synced by deafult to all spaces?
- Retool-CCL Headers:
I came across mentions of being able to use custom headers when using retool-ccl. However, it's not very clear from the documentation which headers are supported or how to use them correctly.
- Is there a list of supported headers and how they influence CLI/API behavior?
Any guidance, best practices, or documentation you can share around automating this deployment flow—particularly for multi-tenant or multi-space environments—would be greatly appreciated.
Thanks so much!