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 --format json for influxdb3 create token command #25913

Open
jules-ch opened this issue Jan 25, 2025 · 0 comments
Open

Add --format json for influxdb3 create token command #25913

jules-ch opened this issue Jan 25, 2025 · 0 comments

Comments

@jules-ch
Copy link

Add a format option for the create token command to use it with CLI in CI or scripts using jq

Use case:
Using token creation in CI, Docker compose or scripts/

Proposal:
Adding a --format json option in the cli to output token and hashed_token in json format

Current behaviour:
Tokens are printed with explanations

Desired behaviour:
Output token and hashed token in JSON format

{
"token": "apiv3_61WJy5PAZ8C**********************************************************",
"hashed_token": "e5cacb**************************************************************************"
}

Alternatives considered:
Parsing it not practical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant