Properties
cwd
cwd: undefined | string = Option.String(`--cwd`, {hidden: true})
publish
publish: boolean = Option.Boolean(`--publish`, false, {description: `Print username for the publish registry`,})
scope
scope: undefined | string = Option.String(`-s,--scope`, {description: `Print username for the registry configured for a given scope`,})
Static paths
paths: string[][] = [[`npm`, `whoami`],]
Static usage
usage
: Usage = Command.Usage({category: `Npm-related commands`,description: `display the name of the authenticated user`,details: `Print the username associated with the current authentication settings to the standard output.When using \`-s,--scope\`, the username printed will be the one that matches the authentication settings of the registry associated with the given scope (those settings can be overriden using the \`npmRegistries\` map, and the registry associated with the scope is configured via the \`npmScopes\` map).When using \`--publish\`, the registry we'll select will by default be the one used when publishing packages (\`publishConfig.registry\` or \`npmPublishRegistry\` if available, otherwise we'll fallback to the regular \`npmRegistryServer\`).`,examples: [[`Print username for the default registry`,`yarn npm whoami`,], [`Print username for the registry on a given scope`,`yarn npm whoami --scope company`,]],})