Install dependencies:
bun installRegister this package's share executable once:
npm linkWhen Node/npm is managed by nodenv, run nodenv rehash after linking so the
new executable gets a shim.
You can then run the command directly while developing:
share ./my-pdf --port 1234The link points at this working copy, so source changes are picked up without
reinstalling the package. Run npm unlink --global share_cli when you no longer
want the development link.
bun link without --global only registers this package so it can be linked
as a dependency of another project; it does not add share to your shell.
Choose an available npm package name in package.json, then publish it:
npm login
npm publishUsers can install it globally with either package manager:
bun add --global share_cli
# or
npm install --global share_cliBoth installations expose the name from package.json#bin, so users run:
share ./my-pdf --port 1234This CLI uses a Bun shebang, so Bun must be installed even when the package is installed through npm.