influxdata / influxdata/influx-cli
Feature request for influx CLI: Custom config preferences for the v1 shell
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
**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.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the configuration handling for ~/.influxdbv2/configs and the entry point for `influx v1 shell`. Trace how the shell currently selects format and precision, then verify that configured defaults are applied when the command starts without explicit options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100