feat: add scoped token support to CLI#19985
Merged
Merged
Conversation
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
1a42b23 to
1d1732b
Compare
6ec4b94 to
d9f66ca
Compare
1d1732b to
518faff
Compare
d9f66ca to
11f6a63
Compare
518faff to
4de874d
Compare
11f6a63 to
75d7b64
Compare
4de874d to
fd7a0fb
Compare
75d7b64 to
f244193
Compare
fd7a0fb to
d06529e
Compare
f244193 to
2f3304e
Compare
d06529e to
a343213
Compare
2f3304e to
1dae22e
Compare
a343213 to
95b0229
Compare
1dae22e to
7eb739c
Compare
95b0229 to
8487b82
Compare
7eb739c to
dc96969
Compare
8487b82 to
c2459aa
Compare
521c665 to
411dc32
Compare
c2459aa to
0587b0c
Compare
This was referenced Oct 9, 2025
411dc32 to
bef5a44
Compare
0587b0c to
3727a3d
Compare
This was referenced Oct 22, 2025
Emyrk
reviewed
Oct 23, 2025
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
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 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.