docs-v2/content/shared/influxctl/table/rename.md

1.2 KiB

The influxctl table rename command renames a table in the specified database in an {{< product-name omit=" Clustered" >}} cluster.

Usage

influxctl table rename [flags] <DATABASE_NAME> <CURRENT_TABLE_NAME> <NEW_TABLE_NAME>

Arguments

Argument Description
DATABASE_NAME Name of the database the table is in
CURRENT_TABLE_NAME Current name of the table
NEW_TABLE_NAME New name for the table

Flags

Flag Description
--format Output format (table (default) or json)
-h --help Output command help

{{% caption %}} Also see influxctl global flags. {{% /caption %}}

Examples

# Rename the "example-tb" table to "example_tb"
influxctl table rename mydb example-tb example_tb