Prisma Postrgres init CLI error

When I run npx prisma@latest init --db, I get this: Error: {"error":"Authentication failed because the access token was expired"}
4 Replies
Prisma AI Help
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into #ask-ai if you get antsy for a second opinion!
Nurul
Nurul2w ago
Hey @akinkunmi! Can you try removing the token from this path /Users/<username>/Library/Preferences/prisma-platform-cli (Assuming you are on MacOS) and then try running the command again?
akinkunmi
akinkunmiOP2w ago
Worked. Thanks! I suggest the CLI should handle this automatically, so I wouldn't have to delete auth.json to reauthenticate next time.
Nurul
Nurul2w ago
I agree. I have reported this to our team internally, we will fix it upcoming prisma releases. Thank you for reporting 👍

Did you find this page helpful?