feat: admin CLI for API key management (no admin login) #3
Reference in New Issue
Block a user
Delete Branch "feat/apikey-admin-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
apikey_cli.py operates directly on the DB (run inside the backend
container). Subcommands: create (alias required; reusing an alias
renews — same key, validity reset, reactivated, name/roles updated;
roles allowlisted; configurable --ttl-days), list (masked keys,
--show-keys to reveal), revoke (by --alias or --key).
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com