Skip to main content

rename

Addedv0.1.x

This operation renames a collection.

Synopsis

zilliz collection rename
--name <value>
--new-name <value>
[--database <value>]
[--new-database <value>]
[--output <json | table | text | yaml | csv>]
[--no-header]
[--query <value>]

OPTIONS:

  • --name (string) -

    [REQUIRED]

    Indicates the current collection name.

  • --new-name (string) -

    [REQUIRED]

    Indicates the new collection name.

    The value should be an alphanumeric string of up to 255 characters, starting with an underscore (_) or a letter.

  • --database (string) -

    Indicates the current database name.

  • --new-database (string) -

    Indicates the target database name (for cross-db rename).

  • --output, -o (string) -

    Indicates the output format. Choices: json, table, text, yaml, csv.

  • --no-header (boolean) -

    Indicates whether to omit the header row when the output is set to table or csv.

  • --query, -q (string) -

    Indicates a JMESPath expression to filter output.

Example

zilliz collection rename --name old_collection --new-name new_collection