# Weaviate-cli 3.0.1 Configuration Question

**URL:** <https://forum.weaviate.io/t/weaviate-cli-3-0-1-configuration-question/7750>\
**Category:** Support\
**Created:** [November 21, 2024, 8:13am UTC](https://forum.weaviate.io/t/weaviate-cli-3-0-1-configuration-question/7750 "2024-11-21T08:13:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rio](https://forum.weaviate.io/u/Rio)\
**Post date:** [November 21, 2024, 8:13am UTC](https://forum.weaviate.io/t/weaviate-cli-3-0-1-configuration-question/7750/1 "2024-11-21T08:13:11Z")

</div>

Hello.

I have 2 questions regarding the weaviate-cli ([GitHub - weaviate/weaviate-cli: CLI tool for Weaviate](https://github.com/weaviate/weaviate-cli)).

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?

---

<div class="post-metadata">

**Author:** ![Jose\_Luis\_Franco](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jose_luis_franco/32/2152_2.png) [@Jose\_Luis\_Franco](https://forum.weaviate.io/u/Jose_Luis_Franco)\
**Post date:** [November 21, 2024, 9:06am UTC](https://forum.weaviate.io/t/weaviate-cli-3-0-1-configuration-question/7750/2 "2024-11-21T09:06:18Z")

</div>

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()](https://github.com/weaviate/weaviate-cli/blob/main/weaviate_cli/managers/config_manager.py#L95-L108), so this is a limitation at the moment.  
Would you be so kind to [open an issue](https://github.com/weaviate/weaviate-cli/issues) 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!

---

<div class="post-metadata">

**Author:** ![Rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rio](https://forum.weaviate.io/u/Rio)\
**Post date:** [November 22, 2024, 1:17am UTC](https://forum.weaviate.io/t/weaviate-cli-3-0-1-configuration-question/7750/3 "2024-11-22T01:17:58Z")

</div>

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.
