-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add scoped token support to CLI #19985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ThomasK33
merged 1 commit into
main
from
thomask33/09-26-add_token_scope_support_in_cli
Oct 27, 2025
Merged
feat: add scoped token support to CLI #19985
ThomasK33
merged 1 commit into
main
from
thomask33/09-26-add_token_scope_support_in_cli
Oct 27, 2025
Conversation
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
This was referenced Sep 26, 2025
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
e31d661 to
c68b64b
Compare
b0bed7f to
acc9e28
Compare
c68b64b to
f277494
Compare
acc9e28 to
53815d9
Compare
f277494 to
51502b5
Compare
53815d9 to
326dbdc
Compare
51502b5 to
9384a37
Compare
326dbdc to
f4dd33e
Compare
1eb446d to
69ca337
Compare
d2ce8e3 to
d7a97c4
Compare
5a7d504 to
a8de59d
Compare
d7a97c4 to
26ce0ed
Compare
a8de59d to
71f4aa9
Compare
26ce0ed to
b5682aa
Compare
71f4aa9 to
42451c1
Compare
b5682aa to
0f1027b
Compare
Emyrk
reviewed
Oct 23, 2025
42451c1 to
f684831
Compare
0f1027b to
ddaca3e
Compare
16cf91a to
33ee2a4
Compare
33ee2a4 to
6bdcaf5
Compare
Emyrk
approved these changes
Oct 27, 2025
This commit adds comprehensive support for token scoping and allow-listing in the CLI token management commands: - Add --scope flag to create scoped tokens with specific permissions - Add --allow flag to create tokens restricted to specific resources - Display scopes and allow-list in token list/view commands - Add tokens view subcommand for detailed token inspection - Update help text and documentation with scoping examples - Add comprehensive test coverage for new functionality
6bdcaf5 to
e41d7f4
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Add support for scoped API tokens in CLI
This PR adds CLI support for creating and viewing API tokens with scopes and allow lists. It includes:
--scopeand--allowflags for thetokens createcommandtokens viewcommand to display detailed information about a tokentokens listto show scopes and allow list entriesThese changes enable users to create tokens with limited permissions through the CLI, similar to the existing functionality in the web UI.