influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 22 forks source link

Feature request for influx CLI: Custom config preferences for the v1 shell #529

Open elofu17 opened 4 months ago

elofu17 commented 4 months ago

Summary: Please add a way to configure custom defaults for the influx v1 shell.

I run the latest version of influx CLI on a Debian 11 machine (package: influxdb2-cli 2.7.3-1). After init/setup, we have the file ~/.influxdbv2/configs, with global options for influx. Nice.

Can you please add a section to configure the defaults for the v1 shell? I want to be able to set the default format and precision in the config file.

I always want to use precision rfc3339, so now I have to manually type it every time I start influx v1 shell. This is tedious! (In the old/legacy version of influx I could run influx -precision rfc3339 ..... but the new version lack this.)