zilliztech / milvus_cli

Milvus Command Line
Apache License 2.0
87 stars 13 forks source link

`describe` - no such command? #75

Closed nickcoast closed 4 months ago

nickcoast commented 7 months ago

Not sure if this is related to issue #68 but I keep running into commands that don't seem to work.

Milvus cli version: 0.4.2
Pymilvus version: 2.3.4
milvus_cli > describe collecion -c test2
Usage: milvus_cli [OPTIONS] COMMAND [ARGS]...

Error: No such command 'describe'.
milvus_cli > 

Or am I reading the docs wrong? Or reading the wrong docs? image

Link to docs: https://milvus.io/docs/v2.1.x/check_collection.md#Check-collection-details

nameczz commented 7 months ago

@nickcoast Looks like i forgot to update some docs. Can you try to use show collection -c book? Also you can follow this doc.

nickcoast commented 7 months ago

@nickcoast Looks like i forgot to update some docs. Can you try to use show collection -c book? Also you can follow this doc.

Thanks, that works!

I'm also seeing that using help to get base commands, then entering one of those with --help, e.g. show --help seems to be a good to discover how to use the cli currently.

milvus_cli > show collection -c test2
+---------------+-----------------------------------+
| Name          | test2                             |
+---------------+-----------------------------------+
| Description   |                                   |
+---------------+-----------------------------------+
| Is Empty      | True                              |
+---------------+-----------------------------------+
| Entities      | 0                                 |
+---------------+-----------------------------------+
| Primary Field | id                                |
+---------------+-----------------------------------+
| Schema        | Description:                      |
|               |                                   |
|               | Auto ID: True                     |
|               |                                   |
|               | Fields(* is the primary field):   |
|               |  - *id INT64                      |
|               |  - vector FLOAT_VECTOR dim: 6355  |
|               |  - vendor_id INT64                |
|               |  - timestamp INT64                |
+---------------+-----------------------------------+
| Partitions    | - _default                        |
+---------------+-----------------------------------+
| Indexes       | - vector                          |
+---------------+-----------------------------------+
milvus_cli >