Add CLI for generating access tokens#42
Merged
Michel Edkrantz (MichelEdkrantz) merged 2 commits intomasterfrom Jan 29, 2026
Merged
Add CLI for generating access tokens#42Michel Edkrantz (MichelEdkrantz) merged 2 commits intomasterfrom
Michel Edkrantz (MichelEdkrantz) merged 2 commits intomasterfrom
Conversation
Adds a `kognic-auth` command with `get-access-token` subcommand for generating access tokens, useful for MCP integrations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Daniel Willim (kognic-willim)
approved these changes
Jan 29, 2026
Contributor
Daniel Willim (kognic-willim)
left a comment
There was a problem hiding this comment.
Looks ok, for future clis I would recommend using https://typer.tiangolo.com/
Also do we want easier support for. going against staging?
Member
Author
Nice, i value the zero dependency value with argparse, and easy enough here imo. I don't want to expose info about our other environments here, since this package is public. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kognic-authCLI command withget-access-tokensubcommand--serverand--credentialsoptions for flexibilityTest plan
tests/test_cli.pykognic-auth get-access-token --helpoutput🤖 Generated with Claude Code