LinuxCommandLibrary

npm-logout

removes authentication token

TLDR

Logout from npm

$ npm logout
copy
Logout from specific registry
$ npm logout --registry=[https://registry.example.com]
copy
Logout from scope
$ npm logout --scope=[@myorg]
copy

SYNOPSIS

npm logout [options]

DESCRIPTION

npm logout removes authentication token. Logs out from npm registry.
The command clears credentials. Affects specified registry or default.

PARAMETERS

--registry URL

Registry to logout from.
--scope SCOPE
Scoped registry.
--help
Display help information.

CAVEATS

Removes token from .npmrc. Per-registry logout. Affects publishing.

HISTORY

npm logout provides authentication management for npm registry access.

SEE ALSO

npm(1), npm-login(1), npm-whoami(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community