deps: upgrade to npm 2.14.4
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-logout.html
1 <!doctype html>
2 <html>
3   <title>npm-logout</title>
4   <meta http-equiv="content-type" value="text/html;utf-8">
5   <link rel="stylesheet" type="text/css" href="../../static/style.css">
6   <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-logout.html">
7   <script async=true src="../../static/toc.js"></script>
8
9   <body>
10     <div id="wrapper">
11
12 <h1><a href="../cli/npm-logout.html">npm-logout</a></h1> <p>Log out of the registry</p>
13 <h2 id="synopsis">SYNOPSIS</h2>
14 <pre><code>npm logout [--registry=url] [--scope=@orgname]
15 </code></pre><h2 id="description">DESCRIPTION</h2>
16 <p>When logged into a registry that supports token-based authentication, tell the
17 server to end this token&#39;s session. This will invalidate the token everywhere
18 you&#39;re using it, not just for the current environment.</p>
19 <p>When logged into a legacy registry that uses username and password authentication, this will
20 clear the credentials in your user configuration. In this case, it will <em>only</em> affect
21 the current environment.</p>
22 <p>If <code>--scope</code> is provided, this will find the credentials for the registry
23 connected to that scope, if set.</p>
24 <h2 id="configuration">CONFIGURATION</h2>
25 <h3 id="registry">registry</h3>
26 <p>Default: <a href="http://registry.npmjs.org/">http://registry.npmjs.org/</a></p>
27 <p>The base URL of the npm package registry. If <code>scope</code> is also specified,
28 it takes precedence.</p>
29 <h3 id="scope">scope</h3>
30 <p>Default: none</p>
31 <p>If specified, the user and login credentials given will be associated
32 with the specified scope. See <code><a href="../misc/npm-scope.html">npm-scope(7)</a></code>. You can use both at the same time,
33 e.g.</p>
34 <pre><code>npm adduser --registry=http://myregistry.example.com --scope=@myco
35 </code></pre><p>This will set a registry for the given scope and login or create a user for
36 that registry at the same time.</p>
37 <h2 id="see-also">SEE ALSO</h2>
38 <ul>
39 <li><a href="../cli/npm-adduser.html">npm-adduser(1)</a></li>
40 <li><a href="../misc/npm-registry.html">npm-registry(7)</a></li>
41 <li><a href="../cli/npm-config.html">npm-config(1)</a></li>
42 <li><a href="../misc/npm-config.html">npm-config(7)</a></li>
43 <li><a href="../files/npmrc.html">npmrc(5)</a></li>
44 <li><a href="../cli/npm-whoami.html">npm-whoami(1)</a></li>
45 </ul>
46
47 </div>
48
49 <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
50 <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
51 <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
52 <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
53 <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
54 <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
55 <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
56 <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
57 </table>
58 <p id="footer">npm-logout &mdash; npm@2.14.4</p>
59