File Explorer

/var/lang/lib/node_modules/npm/man/man1

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

0 dirs
70 files
npm-token.15.4 KB · 201 lines
.TH "NPM-TOKEN" "1" "February 2026" "NPM@11.11.0" "".SH "NAME"\fBnpm-token\fR - Manage your authentication tokens.SS "Synopsis".P.RS 2.nfnpm token listnpm token revoke <id|token>npm token create.fi.RE.PNote: This command is unaware of workspaces..SS "Description".PThis lets you list, create and revoke authentication tokens..SS "Listing tokens".PWhen listing tokens, an abbreviated token will be displayed. For security purposes the full token is not displayed..SS "Generating tokens".PWhen generating tokens, you will be prompted you for your password and, if you have two-factor authentication enabled, an otp..PPlease refer to the \fBdocs website\fR \fI\(lahttps://docs.npmjs.com/creating-and-viewing-access-tokens\(ra\fR for more information on generating tokens for CI/CD..SS "Revoking tokens".PWhen revoking a token, you can use the full token (e.g. what you get back from \fBnpm token create\fR, or as can be found in an \fB.npmrc\fR file), or a truncated id. If the given truncated id is not distinct enough to differentiate between multiple existing tokens, you will need to use enough of the id to allow npm to distinguish between them. Full token ids can be found on the \fBnpm website\fR \fI\(lahttps://www.npmjs.com\(ra\fR, or in the \fB--parseable\fR or \fB--json\fR output of \fBnpm token list\fR. This command will NOT accept the truncated token found in the normal \fBnpm token list\fR output..PA revoked token will immediately be removed from the registry and you will no longer be able to use it..SS "Configuration".SS "\fBname\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String.RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, this sets the name/description for the token..SS "\fBtoken-description\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String.RE 0 .PDescription text for the token when using \fBnpm token create\fR..SS "\fBexpires\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or Number.RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, this sets the expiration in days. If not specified, the server will determine the default expiration..SS "\fBpackages\fR".RS 0.IP \(bu 4Default:.IP \(bu 4Type: null or String (can be set multiple times).RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, this limits the token access to specific packages..SS "\fBpackages-all\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, grants the token access to all packages instead of limiting to specific packages..SS "\fBscopes\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String (can be set multiple times).RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, this limits the token access to specific scopes. Provide a scope name (with or without @ prefix)..SS "\fBorgs\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String (can be set multiple times).RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, this limits the token access to specific organizations..SS "\fBpackages-and-scopes-permission\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null, "read-only", "read-write", or "no-access".RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, sets the permission level for packages and scopes. Options are "read-only", "read-write", or "no-access"..SS "\fBorgs-permission\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null, "read-only", "read-write", or "no-access".RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, sets the permission level for organizations. Options are "read-only", "read-write", or "no-access"..SS "\fBcidr\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String (can be set multiple times).RE 0 .PThis is a list of CIDR address to be used when configuring limited access tokens with the \fBnpm token create\fR command..SS "\fBbypass-2fa\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PWhen creating a Granular Access Token with \fBnpm token create\fR, setting this to true will allow the token to bypass two-factor authentication. This is useful for automation and CI/CD workflows..SS "\fBpassword\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String.RE 0 .PPassword for authentication. Can be provided via command line when creating tokens, though it's generally safer to be prompted for it..SS "\fBregistry\fR".RS 0.IP \(bu 4Default: "https://registry.npmjs.org/".IP \(bu 4Type: URL.RE 0 .PThe base URL of the npm registry..SS "\fBotp\fR".RS 0.IP \(bu 4Default: null.IP \(bu 4Type: null or String.RE 0 .PThis is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with \fBnpm access\fR..PIf not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one..SS "\fBread-only\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PThis is used to mark a token as unable to publish when configuring limited access tokens with the \fBnpm token create\fR command..SS "See Also".RS 0.IP \(bu 4npm help adduser.IP \(bu 4npm help registry.IP \(bu 4npm help config.IP \(bu 4npm help npmrc.IP \(bu 4npm help owner.IP \(bu 4npm help whoami.IP \(bu 4npm help profile.RE 0