dzhng
dzhng2mo ago

Best way to sync env vars across all deployments

Hey all - my team is new to convex but we've all be really enjoying working with it so far. The only big piece of friction we've been having is managing our env variables - I noticed that there isn't a centralized way to manage env vars for the entire project, it's all per deployment. I know there is project defaults, but that doesn't apply to existing deployments. The way we're working with convex internally is that everyone has their own deployment. You can imagine this starts to become troublesome after a certain point, everyone someone adds an external service we all need to go in and add env vars manually. What's the best practice for this?
3 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Clever Tagline
Clever Tagline2mo ago
You can also edit environment variables via the CLI, but again, this is per deployment. I'm a dev team of one, and I don't do much with the Convex CLI other than the basics, but maybe knowing about this feature will give you some ideas for how you could use it to more easily manage environment variables with your team.
CLI | Convex Developer Hub
Command-line interface for managing Convex projects and functions
dzhng
dzhngOP5w ago
thanks! I guess I'll put together some scripts to automate some of these via the CLI

Did you find this page helpful?