LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-token

manages authentication tokens

TLDR

List tokens
$ npm token list
copy
Create token
$ npm token create
copy
Create read-only token
$ npm token create --read-only
copy
Create CI token
$ npm token create --cidr=[192.168.1.0/24]
copy
Revoke token
$ npm token revoke [token-id]
copy

SYNOPSIS

npm token [command] [options]

DESCRIPTION

npm token manages authentication tokens. Creates tokens for CI/CD.The command handles API tokens. Supports scoped permissions.

PARAMETERS

COMMAND

Token subcommand.
list
Show all tokens.
create
Generate new token.
revoke ID
Invalidate token.
--read-only
Read-only token.
--cidr RANGE
IP restriction.
--help
Display help information.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Requires authentication. Tokens are sensitive. Store securely.

HISTORY

npm token provides token management for automated npm registry access.

SEE ALSO

Copied to clipboard
Kai