v.20.12New Feature

Allow Custom History File Path in ClickHouse Client with --history_file Parameter

Make it possible to change the path to history file in clickhouse-client using the --history_file parameter. #15960 (Maksim Kita).
Added a --history_file parameter to clickhouse-client that allows users to specify a custom path for the command history file.

Why it matters

This feature enables users to control where the clickhouse-client stores its command history, providing flexibility for cases such as custom environment setups, user preferences, or avoiding history file conflicts.

How to use it

Launch clickhouse-client with the --history_file option followed by the desired file path. For example:

clickhouse-client --history_file=/path/to/custom_history_file