ohbee-cli
v0.1.1
Published
Command-line interface for ohbee.link — shorten URLs, bulk process, create pastes, and more
Maintainers
Readme
ohbee-cli
Command-line interface for ohbee.link — shorten URLs, bulk process, create pastes.
Install
npm install -g ohbee-cli
# or run without installing:
npx ohbee-cli shorten https://example.com/long-urlCommands
shorten
ohbee shorten <url>
ohbee shorten https://example.com/very/long/url
ohbee shorten https://example.com/path -c # copy to clipboardbulk
# urls.txt: one URL per line
ohbee bulk urls.txt
ohbee bulk urls.txt --output results.csv
ohbee bulk urls.txt --delay 200 # 200ms between requestspaste
ohbee paste "some text or code"
ohbee paste -f ./notes.md # from file
ohbee paste -f ./secret.md -p mypassword # with password
ohbee paste "text" -c # copy link to clipboardconfig
ohbee config --set-token <your-token> # save token once
ohbee config --show # view current configAuthentication
Token priority (highest to lowest):
--token <token>flag on any commandOHBEE_TOKENenvironment variable~/.ohbee/config.json(set viaohbee config --set-token)
Anonymous usage works but is rate-limited.
Examples
# Shorten and copy in one shot
ohbee shorten https://docs.google.com/spreadsheets/d/... -c
# Bulk shorten a product list and save to CSV
ohbee bulk product-urls.txt -o shortened.csv
# Paste a file and get a shareable link
ohbee paste -f ./meeting-notes.md -c
# Use in CI/CD (GitHub Actions, etc.)
SHORT=$(OHBEE_TOKEN=$TOKEN ohbee shorten $DEPLOY_URL)
echo "Deployment: $SHORT"Development
git clone https://github.com/ohbee/ohbee-cli
cd ohbee-cli
npm install
node src/index.js shorten https://example.com