Repository navigation
Add a roll command to the roboflow api-key CLI - #566
Merged
renzon merged 2 commits intoOct 23, 2026
Merged
Conversation
renzon
force-pushed
the
renzo/ent-2118-add-a-roll-command-to-the-roboflow-api-key-cli
branch
from
October 23, 2026 12:34
a3b2b2a to
1b1a077
Compare
renzon
force-pushed
the
renzo/ent-2118-add-a-roll-command-to-the-roboflow-api-key-cli
branch
from
October 23, 2026 12:38
1b1a077 to
6fa9b47
Compare
renzon
marked this pull request as ready for review
October 23, 2026 12:47
shntu
approved these changes
Oct 23, 2026
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.
What does this PR do?
The CLI could create, update, protect, disable and revoke API keys, but rotating one meant revoking it and creating a replacement by hand, losing the key's scopes, folders and metadata.
roboflow api-key roll KEY_IDcalls the existingPOST /:workspace/api-keys/:keyId/rollendpoint, which revokes the key and mints its replacement with the same configuration, and prints the new secret once.--rotation-due-atand--ownerset the replacement's rotation schedule.Related Issue(s): ENT-2118
Type of Change
Testing
Test details:
tests/cli/test_api_key.py: help, text and JSON output, confirmation without a TTY, schedule forwarding, 409 and 404 exit codesRoboflowErrorChecklist
Additional Context
The public docs page "API Key Management API" (roboflow/docs#407) will list the command once this ships.