yarn / 3.1.1 / cli / npm / logout.html /

yarn npm logout

Logout of the npm registry.

Usage

$> yarn npm logout

Examples

Logout of the default registry :

yarn npm logout

Logout of the @my-scope scope :

yarn npm logout --scope my-scope

Logout of the publish registry for the current package :

yarn npm logout --publish

Logout of all registries :

yarn npm logout --all

Options

Definition
Description
-s,--scope #0 Logout of the registry configured for a given scope
--publish Logout of the publish registry
-A,--all Logout of all registries

Details

This command will log you out by modifying your local configuration (in your home folder, never in the project itself) to delete all credentials linked to a registry.

Adding the -s,--scope flag will cause the deletion to be done against whatever registry is configured for the associated scope (see also npmScopes).

Adding the --publish flag will cause the deletion to be done against the registry used when publishing the package (see also publishConfig.registry and npmPublishRegistry).

Adding the -A,--all flag will cause the deletion to be done against all registries and scopes.

© 2016–present Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/cli/npm/logout