content/influxdb3/enterprise/admin/file-index/create.md
Use the influxdb3 create file_index command
to create a custom file indexing strategy for a database or table.
Provide the following:
--token): ({{< req >}}) Your {{% token-link "admin" %}}.
You can also use the INFLUXDB3_AUTH_TOKEN environment variable to specify
the token.-d, --database): ({{< req >}}) The name of the database to
apply the index to. You can also use the INFLUXDB3_DATABASE_NAME
environment variable to specify the database.-t, --table): The name of the table to apply the index to.
If no table is specified, the indexing strategy applies to all tables in the
specified database.{{% code-placeholders "AUTH_TOKEN|DATABASE|TABLE|COLUMNS" %}}
<!--pytest.mark.skip-->influxdb3 create file_index \
--token AUTH_TOKEN \
--database DATABASE_NAME \
--table TABLE_NAME \
COLUMNS
{{% /code-placeholders %}}
Replace the following placeholders with your values:
AUTH_TOKEN{{% /code-placeholder-key %}}:
your {{% token-link "admin" %}}DATABASE_NAME{{% /code-placeholder-key %}}:
the name of the database to create the file index inTABLE_NAME{{% /code-placeholder-key %}}:
the name of the table to create the file index inCOLUMNS{{% /code-placeholder-key %}}:
a comma-separated list of columns to index on--for example: host,application