Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it manually I'd really want to do it via CLI, but while the login is easily doable the following command seems to fail:
appwrite init project --organization-id "organization-6a046a3c002c5e88804a" --project-id "test_project" --project-name "My New Project"
It always says that i don't have the permission to write projects, but I'm authenticated as the org-owner...
Okay i might be stupid af. i guess organization- doesn't need to be included looking at https://github.com/appwrite/sdk-for-cli/blob/540225f9c32bbc681f6bce4ce531cd6083961869/lib/commands/init.ts ...
yep seems to no longer give me project.write errors, but now errors for the test_project as project-id ...
even when doing it via cli...
? What ID would you like to have for your project? unique()
Warning: The current SDK is built for Appwrite 1.9.4. However, the current Appwrite server version is 1.9.0. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks
AppwriteException: Invalid `projectId` param: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore
at _Client.<anonymous> (/usr/local/share/nvm/versions/node/v24.14.0/lib/node_modules/appwrite-cli/dist/cli.cjs:105343:15)
at Generator.next (<anonymous>)
at fulfilled (/usr/local/share/nvm/versions/node/v24.14.0/lib/node_modules/appwrite-cli/dist/cli.cjs:104531:24)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {
code: 400,
type: 'general_argument_invalid',
response: '{"message":"Invalid `projectId` param: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can\'t start with a leading underscore","code":400,"type":"general_argument_invalid","version":"1.9.0"}'
}
guess unique() doesn't work, but giving it a random uid myself does work
what Appwrite and cli version are you using?
you might have to downgrade cli version
self hosted cli is @17, any 17.x.x works, just if you use more recent versions you will get the Warning and maybe commands will fails due to changes
Should've replied... I in fact got it working with @17 anything higher will fail on at least one command as there are a few routes missing
Recommended threads
- Framework categorization for Sites
Hello, I want to deploy my web app via Appwrite SItes. My web app is vite+reactjs. In the Appwrite docs, it creates a vite+react app, and chooses React from the...
- How to use Appwrite MCP on Claude Deskto...
Hello I'd like to use the Appwrite MCP with Claude Desktop and have set up the connector, but asking questions about my Appwrite instance does not work. Any ide...
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...