Files
tldr/pages/common/bun-pm-pkg.md
T
Managor b2d3c84281 devfsadm, bun-pm-pkg, piper, aa-unconfined, wmic, trdsql, electron-packager, cheatshh: adhere to the style guide (#22003)
* Update devfsadm.md

* Update devfsadm.md

* Update piper.md

* Update bun-pm-pkg.md

* Update aa-unconfined.md

* Update wmic.md

* Update trdsql.md

* Update elm.md

* Update electron-packager.md

* Update cheatshh.md
2026-04-13 12:17:03 +10:00

613 B

bun pm pkg

Manage package.json data with get, set, delete, and fix operations. More information: https://bun.com/docs/pm/cli/pm#pkg.

  • Get all properties from package.json:

bun pm pkg get

  • Get a single property:

bun pm pkg get {{property}}

  • Get multiple properties:

bun pm pkg get {{property1 property2 property3 ...}}

  • Get nested property:

bun pm pkg get {{property}}.{{attribute}}

  • Set a property:

bun pm pkg set {{property}}="{{value}}"

  • Delete a property:

bun pm pkg delete {{property}}

  • Automatically fix common issues in package.json:

bun pm pkg fix