Skip to content

bun pm cache flags are not documented / are documented incorrectly #26427

@lgarron

Description

@lgarron

What version of Bun is running?

1.3.6+d530ed993

What platform is your computer?

macOS 26.1

What steps can reproduce the bug?

bun pm cache rm --help
bun pm cache --help

What is the expected behavior?

The documentation shows -g and --global as flags.

What do you see instead?

No documentation of -g or --global.

Further, https://bun.com/docs/pm/cli/pm#cache states:

To clear Bun’s global module cache:

bun pm cache rm

This implies that bun pm cache rm has the same effect as bun pm cache rm --global. But:

  • bun pm cache rm --global can be run outside a project dir.
  • bun pm cache rm cannot be run outside a project dir.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions