Back

trouble using the cli

  • 0
  • Tools
mauricev
13 May, 2023, 23:44

I successfully logged into my appwrite server. It asks for a project id and I don't know where that info is, but I see something in the URL, so I am using that. However, when I issue the command appwrite get --projectId 63e8651745c7c2a0353b, I get "bash: line 1: projects: command not found".

TL;DR
User encountered an issue with using the CLI. They had mistakenly created a bash alias using the same name as the CLI command, causing confusion. They resolved the issue by changing the alias. Another user suggested uninstalling and reinstalling using npm. The error message indicates that the CLI command is being mistaken for an SSH command. The user installed the CLI using brew. When checking the CLI version, they received an error. Attempting to retrieve project information using the command `appwrite projects get --projectId 63e8651745c7c2a0353b` resulted in an error message. No solution provided for this issue.
mauricev
13 May, 2023, 23:44

Oops it's appwrite projects get --projectId 63e8651745c7c2a0353b that doesn't work

mauricev
13 May, 2023, 23:45

bash: line 1: projects: command not found

Drake
14 May, 2023, 00:34

that's weird...it works for me...what does appwrite --version output?

mauricev
14 May, 2023, 16:17

The response is even weirder: maurice@192.168.1.96: illegal option -- - usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]

mauricev
14 May, 2023, 16:17

Somehow it thinks it is the ssh command. I installed it on my Mac using brew

Drake
14 May, 2023, 17:06

Can you uninstall and install using npm instead?

mauricev
14 May, 2023, 23:13

It was my stupidity. I made a bash alias named "appwrite" to ssh into my appwrite vm, which I had been logged into a for a while and I forgot that was the command. Once I changed it, the cli appwrite command started 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