influxdata / influxdata/influx-cli

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

Open
#529 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.