Update email templates using CLI #8165
Replies: 5 comments 1 reply
-
This would be a great feature to have in general, even if you aren't using an email framework like Being able to automate that any changes to those email templates in the codebase are automatically deployed to the Supabase environments using CI/CD using the Supabase CLI would be great as otherwise it adds another manual step to deployments in the case of email template changes (and manual steps for deployments are obviously something that can easily be forgotten 😅) |
Beta Was this translation helpful? Give feedback.
-
By extension, having this capability via API seems like a must. More generally, you should ideally be able to programmatically update email templates. Firebase is very self-serve friendly in this respect - you can set up literally anything to do with a project via their API. |
Beta Was this translation helpful? Give feedback.
-
The CLI/API would also need to set the message subject line. |
Beta Was this translation helpful? Give feedback.
-
Any update on this feature? Seems like it should be straightforward? |
Beta Was this translation helpful? Give feedback.
-
this exists! first: https://supabase.com/docs/guides/local-development/customizing-email-templates to push:
https://supabase.com/docs/reference/cli/supabase-config-push |
Beta Was this translation helpful? Give feedback.
-
Hi!
I wanted to ask if we can have a way to update these email templates using the
supabase-cli
?The use case is for developers already using email frameworks like mjml to build structured email layouts without the hassle.
Right now the only way of updating them is to build the HTML string locally and manually copy and paste it in the Supabase dashboard. 😢
Checking #2831, it seems you have plans to implement a template editor in a future date. However, it would be awesome to update them outside the dashboard as well.
The usage could be something like
This would also enable developers to hook these commands into task runners like GitHub Actions, ensuring the templates are up-to-date after a local change.
TY!
Beta Was this translation helpful? Give feedback.
All reactions