influxctl table rename

The influxctl table rename command renames a table in the specified database in an InfluxDB cluster.

Usage

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

Arguments

ArgumentDescription
DATABASE_NAMEName of the database the table is in
CURRENT_TABLE_NAMECurrent name of the table
NEW_TABLE_NAMENew name for the table

Flags

FlagDescription
--formatOutput format (table (default) or json)
-h--helpOutput command help

Examples

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

Was this page helpful?

Thank you for your feedback!