Back

(automation) Create an admin user, project and apikey

  • 0
  • Self Hosted
  • Tools
alon1874
3 Jan, 2024, 19:26

I would like to set up my stack from an automation flow. is it possible to create an admin user, project and an apikey from a script?

TL;DR
Summary: The user is looking for a way to automate the process of creating an admin user, project, and API key. They want to be able to set up their stack with a single click instead of manually going through the steps. Solution: The user was advised to use the server-side SDK to write a script that can automate the creation of a project. They can refer to the API calls made in the console to replicate them in the script. This will allow them to create an admin user, project, and API key through automation.
D5
3 Jan, 2024, 20:05

Why do you need that? You mean creating a new user in the console?

alon1874
3 Jan, 2024, 20:14

I want to set up an entire project, db, collections, populate data and connect it to the web app with a click of a button. At the moment the manual steps are the project creation (its a self hosted stack)

D5
3 Jan, 2024, 20:18

With server side SDk you could create a script once you have created a project: https://appwrite.io/docs/references/cloud/client-web/databases

alon1874
3 Jan, 2024, 21:04

yea, but i wonder if i can also automate the project creation

Drake
3 Jan, 2024, 21:21

look into what API calls are made when you do it from the Console...then do the same API calls in whatever script you write

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