Appwrite cli appwrite init project --verbose command throws this error message:
TypeScript
AppwriteException [Error]: For console projects, please use the organizations API.
at Client.call (/usr/local/lib/node_modules/appwrite-cli/lib/client.js:211:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async teamsList (/usr/local/lib/node_modules/appwrite-cli/lib/commands/teams.js:68:16)
at async paginate (/usr/local/lib/node_modules/appwrite-cli/lib/paginate.js:10:26)
at async Object.choices (/usr/local/lib/node_modules/appwrite-cli/lib/questions.js:155:31) {
code: 401,
response: 'general_access_forbidden'
}
P.S.: I'm using Appwrite Cloud & Latest Appwrite CLi
TL;DR
Developers encountered an issue with the CLI not working, but the problem was solved by manually creating an `appwrite.json` file with project details. The CLI command `appwrite init project --verbose` was throwing an error related to console projects, but after the manual file creation, other CLI commands worked fine.@Support
This is a known bug
With Cloud
Is this a speedrun or what? @kamal.panara
I put my medal to myself :zoom:
Solution: create appwrite.json manually which is same as using init project command i guess. and use other cli commands.
appwrite.json file:
TypeScript
{
"projectId": "REPLACE WITH THE PROJECT ID",
"projectName": "REPLACE WITH YOUR PROJECT NAME"
}
[SOLVED] CLI not working
Recommended threads
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- 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...