Weaviate-cli 3.0.1 Configuration Question

Hello.

I have 2 questions regarding the weaviate-cli (GitHub - weaviate/weaviate-cli: CLI tool for Weaviate).

I recently installed the newly released version 3.0.1 and tried to test it.
I created a ~/.config/weaviate/config.json file in the following format as instructed:
{
“host”: “your-weaviate-host”,
“http_port”: “your-http-port”,
“grpc_port”: “your-grpc-port”,
“auth”: {
“type”: “api_key”,
“api_key”: “your-api-key”
}
}

However, when I specify the host as ‘localhost’, the commands work normally.

$ weaviate-cli get collection
Collection Multitenancy Tenants Objects ReplicationFactor VectorIndex Vectorizer
Movies False 0 1000 3 hnsw none

Questoin 1.
But when I specify the host as the server’s hostname or IP, I get the following error:

Error: Could not connect to Weaviate: Connection to Weaviate failed. Details: .

I have confirmed that I can access the target port normally using the hostname and IP.
What could be the problem?

Questoin 2.
how do I set the IP of http_port and grpc_port in different environments?

Hello Rio,

I am happy to see that other users from the community are starting to use this tool.
The main issue is that if your host contains the string “localhost” it will decide to connect using weaviate.connect_to_local() which infers things like the http_port or grpc_port, however if you specify the IP the tool will consider you are using a WCD cluster and use the weaviate.connect_to_wcs(), so this is a limitation at the moment.
Would you be so kind to open an issue in the repository so that we can take care of changing it?

Thanks a lot for using weaviate-cli and for providing us with the feedback!

2 Likes

Hello. Jose Luis Franco,

Thank you for your response.

I am currently using Weaviate installed on a Kubernetes cluster in an on-premises environment.
It seems that it’s still difficult to use the weaviate-cli in this environment, correct?
I look forward to continued improvements in this area.
Additionally, it would be great if a GUI Admin Tool could be developed as well.

Thank you.