For me 'npm link' worked, instead of 'bun link', to install the cli.
Though the entire project was done with bun and no trace of node or npm was there in my project, 'npm link' worked. Even my index.ts file had this - '#! /usr/bin/env bun' in the fist line.