Back

Use Appwrite in Github Actions with just the api key

  • 0
  • Tools
  • Databases
  • Cloud
IJustDev
7 Oct, 2024, 10:03

I have got a github actions pipeline and I want to use the appwrite cli there to publish changes to the database and the functions. How am I supposed to do this?

I took a look in the source code and appearently they always require a user session for me. So how can I log in? Please help. @Steven

TL;DR
Developers want to use Appwrite in a Github Actions pipeline with just the API key. They are struggling with the Appwrite CLI requiring a user session for login. Solution: To authenticate without a user session, developers can directly use the API key in the Appwrite CLI command like this: ``` appwrite useKey <project-id> <api-key> <endpoint> ```
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