I am trying to automate the whole deployment/recreation of an appwrite application. Some parts I did with the GUI seem quite hard to automate with the CLI only (will open several tickets).
If I have a fresh installation and I want to create the very first project with the CLI this requires me a teamId, and leting it empty does not help:
AppwriteException [Error]: Team with the requested ID could not be found.```
Sure I cannot create a new team or apparently do nothing as almost all commands reply with
```$ appwrite teams create --teamId .... --name name
✗ Error Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.```
How should I proceed using the CLI?
The TeamID required is the organization one, the one you've created when first signing up into your Appwrite instance.
You can find in the URL in the main projects page
https://cloud.appwrite.io/console/organization-TEAM_ID
no cloud... only self host
will have to check that in detail
@Binyamin I need somehow to query that, with rest or appwrite's CLI
✗ Error Access to this API is forbidden.
the pointer you gave me is good, I can indeed create a project on the CLI this way
just need to find out how to fetch non interactively the orgnization id
so bad that appwrite teams list --json returns all memberships but not the organization which the same API with curl does indeed return it https://domain/v1/teams
so frustrating
For that part I think is best to create a feature request for it.
You can do it by using the cli as library Check this
Doing it using the CLI can be complicated considering switching between project IDs.
I highly recommend doing it manually via the console and inspecting the network logs using your browser dev tools. You'll see what API calls are made and then you can recreate those calls using curl
thanks, that's how I ended up automating it
[SOLVED] (automation) create a brand new project using Appwrite CLI
Recommended threads
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...
- after using the coding agents its code b...
can anybody suggest me an ai tool that i can use to create the system desgins without the suggestion things because it at last create a mess
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...