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
- 1.8.1 - Databases - inline updating a ro...
When updating a database field via the inline edit method, the `$updatedAt` column does not get updated. Only if the row is updated by the "Update" interface (t...
- Function executions fail with cURL error...
Appwrite version: 1.8.0 Executor version: 0.11.4 Function runtime: Python 3.12 SELF-HOSTED Function executions that occur at the same moment as the executor's ...
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...