PageSourceSearch

https://pnpm.io/assets/js/0afe0ac5.4f13f093.js

js pnpm.io collected 2026-09-24 07:22:44 UTC 2,311 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["13685"],{70098(e,t,n){n.r(t),n.d(t,{metadata:()=>i,default:()=>p,frontMatter:()=>o,contentTitle:()=>l,toc:()=>c,assets:()=>a});var i=JSON.parse('{"id":"cli/whoami","title":"pnpm whoami","description":"Added in: v11.0.0","source":"@site/versioned_docs/version-12.x/cli/whoami.md","sourceDirName":"cli","slug":"/cli/whoami","permalink":"/cli/whoami","draft":false,"unlisted":false,"editUrl":"https://github.com/pnpm/pnpm.io/edit/main/docs/cli/whoami.md","tags":[],"version":"12.x","lastUpdatedBy":null,"lastUpdatedAt":null,"frontMatter":{"id":"whoami","title":"pnpm whoami"},"sidebar":"docs","previous":{"title":"pnpm logout","permalink":"/cli/logout"},"next":{"title":"pnpm access","permalink":"/cli/access"}}'),r=n(91987),s=n(67008);let o={id:"whoami",title:"pnpm whoami"},l,a={},c=[{value:"Options",id:"options",level:2},{value:"--registry &lt;url&gt;",id:"--registry-url",level:3}];function d(e){let t={a:"a",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.p,{children:"Added in: v11.0.0"}),"\n",(0,r.jsx)(t.p,{children:"Print the username associated with the current registry credentials."}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-sh",children:"pnpm whoami [--registry <url>]\n"})}),"\n",(0,r.jsxs)(t.p,{children:["If you are not logged in, the command exits with an error. Use ",(0,r.jsx)(t.a,{href:"/cli/login",children:(0,r.jsx)(t.code,{children:"pnpm login"})})," to authenticate first."]}),"\n",(0,r.jsx)(t.h2,{id:"options",children:"Options"}),"\n",(0,r.jsx)(t.h3,{id:"--registry-url",children:"--registry <url>"}),"\n",(0,r.jsx)(t.p,{children:"The registry to check. Defaults to the configured default registry."})]})}function p(e={}){let{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},67008(e,t,n){n.d(t,{R:()=>o,x:()=>l});var i=n(71763);let r={},s=i.createContext(r);function o(e){let t=i.useContext(s);return i.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.