I am currently self-hosting Appwrite in my local machine, deployed using docker script in the website. I also installed appwrite-cli through npm.
I am trying to create a project programmatically. I am aware that I can create a project in the appwrite-cli using appwrite init project and following the setup. I am successful in creating a project that way.
However, I want to create the project through the command appwrite projects create but I am getting the error:
AppwriteException [Error]: (my email address) (role: users) missing scopes (["projects.write"])
The email address that I am using is the owner, and should be the "admin" as this is the only account I created in the Console and in Appwrite. I also have the "Owner" role in the Personal projects landing page (organization)
I tried to follow the Network in Console to use the same cookie to call a POST query in Postman, but that also gives me the missing scope issue.
What am I doing wrong with my appwrite projects create call? Am I missing out something to make my account into an admin/owner? Do I have to add the projects.write scope somewhere? Is there a gap with the self-hosted and the Cloud version?
Thanks
this is the command I called
appwrite projects create --project-id 'ID.unique()' --name 'Name 2' --team-id 'ID.unique()' --verbose
And the error
AppwriteException [Error]: (my email address) (role: users) missing scopes (["projects.write"])
at Client.call (/Users/user/.nvm/versions/node/v24.3.0/lib/node_modules/appwrite-cli/lib/client.js:209:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async projectsCreate (/Users/user/.nvm/versions/node/v24.3.0/lib/node_modules/appwrite-cli/lib/commands/projects.js:156:16) {
code: 401,
response: 'general_unauthorized_scope'
}
Recommended threads
- User Filter/Sorting/Analytics
Currently the dashboard for users is very limited. I would like to have an option to sort by column and also to filter by column, to for example find users that...
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...