Skip to content

Conversation

@owlstronaut
Copy link
Contributor

@owlstronaut owlstronaut commented Oct 28, 2025

This pull request introduces extensive enhancements to the npm token management command, adding support for creating Granular Access Tokens (GATs) with fine-grained permissions. It updates the CLI interface, configuration, and documentation to allow users to specify token details such as name, description, expiration, package/scope/org restrictions, permission levels, and bypassing two-factor authentication. The changes also improve error messaging and ensure all new options are reflected in the config and docs.

Needs npm/npm-profile#175 changes/release before this will work.

@owlstronaut owlstronaut changed the title feat: Adds Granular Access Token (GAT) support to npm token command feat!: Adds Granular Access Token (GAT) support to npm token command Oct 28, 2025
@owlstronaut owlstronaut force-pushed the owlstronaut/gat-create-support branch from dfcfec9 to ff27b2a Compare October 29, 2025 16:40
@owlstronaut owlstronaut changed the title feat!: Adds Granular Access Token (GAT) support to npm token command fix: Uses the npm-profile package to create tokens with GAT support Oct 29, 2025
@owlstronaut owlstronaut force-pushed the owlstronaut/gat-create-support branch 2 times, most recently from e1966ed to 12e237f Compare October 31, 2025 16:52
Show extended information in \`ls\`, \`search\`, and \`help-search\`.
`,
}),
name: new Definition('name', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may want to namespace a few of these to gat-, if not all of them.

@wraithgar wraithgar force-pushed the owlstronaut/gat-create-support branch from 12e237f to a0b368f Compare November 10, 2025 18:46
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.

2 participants