Back

Appwrite CLI API KEYS

  • 0
  • Self Hosted
  • Tools
  • General
Runpace
18 Dec, 2023, 05:36

I imported my appwrite project with import data in the migrations, and naturally it doesn't import the API keys. Problem is lots of devices (Access Gates) connected to DB with that API KEY that I can't import. And I cant just create a new one because it needs to be the same secret so I tried to do it with the CLI yet I get "Error Access to this API is forbidden" when I try to run "appwrite console variables". Is what I am trying to is possible? Can you help me? Thanks.

TL;DR
The user is having an issue with importing an Appwrite project and the API keys. They cannot import the API keys and devices connected to the DB require the same secret. They tried using the CLI command "appwrite console variables" but encountered an error. They are asking if it is possible to achieve what they are trying and for help. Solution: It seems that using "appwrite console variables" is not the correct command for project variables. The correct command is "appwrite project listVariables". As for the issue with the API keys, it is not possible to use a custom value as an API key in Appwrite.
ideclon
18 Dec, 2023, 05:50

Looks like the endpoint for appwrite console variables is only accessible from the Console SDK. But anyway, appwrite console variables is not for Project variables - that's appwrite project listVariables

ideclon
18 Dec, 2023, 05:52

But ether way, this doesn't really help you much. Project variables aren't really what you need here. To my understanding, no, there's no way to tell Appwrite to use a custom value as an API key

Runpace
18 Dec, 2023, 05:55

Thanks for the answer!

ideclon
18 Dec, 2023, 05:55

If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more