LinuxCommandLibrary

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.

CAVEATS

Requires authentication. Tokens are sensitive. Store securely.

HISTORY

npm token provides token management for automated npm registry access.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community