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".
Summary
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
Rank 2: Process
May 13, 2023, 23:44
Oops it's appwrite projects get --projectId 63e8651745c7c2a0353b that doesn't work
mauricev
Rank 2: Process
May 13, 2023, 23:45
bash: line 1: projects: command not found
Drake
Admin
May 14, 2023, 00:34
that's weird...it works for me...what does appwrite --version output?
mauricev
Rank 2: Process
May 14, 2023, 16:17
The response is even weirder: maurice@192.168.1.96: illegal option -- -
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
mauricev
Rank 2: Process
May 14, 2023, 16:17
Somehow it thinks it is the ssh command. I installed it on my Mac using brew
Drake
Admin
May 14, 2023, 17:06
Can you uninstall and install using npm instead?
mauricev
Rank 2: Process
May 14, 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.