Skip to content

Add CLI for generating access tokens#42

Merged
Michel Edkrantz (MichelEdkrantz) merged 2 commits intomasterfrom
add-cli
Jan 29, 2026
Merged

Add CLI for generating access tokens#42
Michel Edkrantz (MichelEdkrantz) merged 2 commits intomasterfrom
add-cli

Conversation

@MichelEdkrantz
Copy link
Copy Markdown
Member

@MichelEdkrantz Michel Edkrantz (MichelEdkrantz) commented Jan 28, 2026

Summary

  • Adds a kognic-auth CLI command with get-access-token subcommand
  • Useful for MCP integrations and scripting
  • Supports --server and --credentials options for flexibility

Test plan

  • Unit tests added in tests/test_cli.py
  • Manual testing with valid credentials
  • Verify kognic-auth get-access-token --help output

🤖 Generated with Claude Code

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>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok, for future clis I would recommend using https://typer.tiangolo.com/

Also do we want easier support for. going against staging?

Comment thread pyproject.toml
@MichelEdkrantz Michel Edkrantz (MichelEdkrantz) merged commit 17c314d into master Jan 29, 2026
11 checks passed
@MichelEdkrantz
Copy link
Copy Markdown
Member Author

Looks ok, for future clis I would recommend using https://typer.tiangolo.com/

Also do we want easier support for. going against staging?

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.

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

Successfully merging this pull request may close these issues.

2 participants