Prisma Console API access?
I'm looking to update the database connection string used for Prisma Accelerate automatically. Is there an API available with which I can do this?
![No description](https://cdn.answeroverflow.com/1248002821173940357/IMG_1533.jpg)
3 Replies
Hey @ByteBuf 👋
We have Platform CLI in Early Access that allows to perform certain operations via CLI commands. Updating the connection string is not one of them yet.
Thanks for sharing the feedback though, I have shared this internally.
https://www.prisma.io/docs/platform/platform-cli/about
Platform CLI: About | Prisma Documentation
This guide demonstrates how to access the Prisma Data Platform using the Prisma CLI. Get started by ensuring you have the Prisma CLI installed, following our setup instructions.
One alternative would be that you could disable Accelerate for your environment and enable it again with the updated connection string.
Here are the commands:
https://www.prisma.io/docs/platform/platform-cli/commands#accelerate-disable
https://www.prisma.io/docs/platform/platform-cli/commands#accelerate-enable
Platform CLI: Commands | Prisma Documentation
This document describes the Prisma Data Platform's integrated Prisma CLI commands, arguments, and options.
Looks good! Thanks for your help.