pnpm logout

Log out of an npm registry. Revokes the authentication token on the registry and removes it from the local auth config file.

pnpm logout [--registry <url>]

pnpm logout removes the token from <pnpm config>/auth.ini and from the _auth setting in the global config.yaml, where pnpm 12.1 to 12.15 wrote it. A token supplied by .npmrc, another config file, or the environment is revoked at the registry but must be removed from that source manually.

Options#

--registry <url>#

The registry to log out from. Defaults to the configured default registry.