Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variables to the influx --help command #16048

Closed
russorat opened this issue Nov 26, 2019 · 2 comments · Fixed by #16491
Closed

Add environment variables to the influx --help command #16048

russorat opened this issue Nov 26, 2019 · 2 comments · Fixed by #16491
Assignees

Comments

@russorat
Copy link
Contributor

in the 1.x world, the --help command would show the environment variables that could be set as well so that the command could be shorter. I know about INFLUX_TOKEN but are there others for the ORG or BUCKET as well?

It would be helpful to have them here:

➜  influxdb git:(master) ✗ ./bin/darwin/influx pkg
Error: required flag(s) "org-id" not set
Usage:
  influx pkg [flags]
  influx pkg [command]

Available Commands:
  export      Export existing resources as a package
  new         Create a reusable pkg to create resources in a declarative manner
  summary     Summarize the provided package
  validate    Validate the provided package

Flags:
  -c, --color               Enable color in output, defaults true (default true)
  -f, --file string         Path to package file
      --force-on-conflict   TTY input, if package will have destructive changes, proceed if set true. (default true)
  -h, --help                Help for the pkg command
  -o, --org-id string       The ID of the organization that owns the bucket
  -q, --quiet               disable output printing
      --table-borders       Enable table borders, defaults true (default true)

Global Flags:
      --host string    HTTP address of Influx (default "http://localhost:9999")
      --local          Run commands locally against the filesystem
      --skip-verify    SkipVerify controls whether a client verifies the server's certificate chain and host name.
  -t, --token string   API token to be used throughout client calls

Use "influx pkg [command] --help" for more information about a command.
@imogenkinsman
Copy link
Contributor

A list of all env vars used in the CLI:
INFLUX_ORG_ID
INFLUX_ORG
INFLUX_BUCKET_ID
INFLUX_BUCKET_NAME
INFLUX_TOKEN
INFLUX_HOST
INFLUX_PRECISION

@russorat
Copy link
Contributor Author

russorat commented Mar 5, 2020

this looks like it's been added.

@russorat russorat closed this as completed Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants