Skip to content
Back

[SOLVED] CLI not working

  • 0
  • Tools
  • Cloud
kamal.panara
1 Mar, 2025, 20:56

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.
kamal.panara
1 Mar, 2025, 20:56

@Support

ideclon
1 Mar, 2025, 20:57

This is a known bug

ideclon
1 Mar, 2025, 20:57

With Cloud

D5
1 Mar, 2025, 20:57

Is this a speedrun or what? @kamal.panara

D5
1 Mar, 2025, 20:59

I put my medal to myself :zoom:

kamal.panara
1 Mar, 2025, 20:59

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"
}
kamal.panara
1 Mar, 2025, 20:59

[SOLVED] CLI not working

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more