Skip to content

Update token commands for token API v2 (#166)#202

Merged
atimin merged 3 commits intomainfrom
166-task-update-token-api-changes-in-reduct-cli
Apr 5, 2026
Merged

Update token commands for token API v2 (#166)#202
atimin merged 3 commits intomainfrom
166-task-update-token-api-changes-in-reduct-cli

Conversation

@atimin
Copy link
Copy Markdown
Member

@atimin atimin commented Apr 4, 2026

Closes #166

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CHANGELOG.md has been updated (for bug fixes / features / docs)

What kind of change does this PR introduce?

Feature

What was changed?

  • Added token API v2 support in CLI token commands.
  • Added token rotate subcommand.
  • Extended token create with --ttl, --expires-at, --expires-in, and --ip-allow.
  • Updated token show to display extended token metadata.
  • Updated token ls --full to print a table with status, expiry, TTL, last access, and IP allowlist.
  • Added/updated tests for token command parsing and behavior.

Related issues

Does this PR introduce a breaking change?

No.

Other information:

cargo fmt

RS_API_TOKEN=TOKEN cargo test cmd::token:: -- --test-threads=1

@atimin atimin linked an issue Apr 4, 2026 that may be closed by this pull request
@atimin atimin requested a review from AnthonyCvn April 4, 2026 20:41
@atimin atimin enabled auto-merge (squash) April 4, 2026 20:41
@atimin atimin merged commit d6e12c4 into main Apr 5, 2026
13 checks passed
@atimin atimin deleted the 166-task-update-token-api-changes-in-reduct-cli branch April 5, 2026 05:28
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.

Task: Update token API changes in reduct-cli

2 participants