Skip to content

pnpm login --scope is documented but not implemented #11716

@keroiber

Description

@keroiber

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

11.1.2

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

pnpm login --help

gives

Version 11.1.2
Usage: pnpm login [--registry <url>]

Log in to an npm registry.

Options:
      --registry <url>     The registry to log in to

Visit https://pnpm.io/11.x/cli/login for documentation about this command.

The online documentation for pnpm 11.x says that the parameter --scope is supported:

pnpm login [--registry <url>] [--scope <scope>]

Trying to call it with --scope gives

[ERROR] Unknown option: 'scope'
For help, run: pnpm help login

Describe the Bug

The online documentation does not match the actual functionality.

I would really appreciate having the parameter --scope.

Expected Behavior

Documentation and actual behavior should match.

Which Node.js version are you using?

24.8.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions