pbca · the pastebin.ca CLI
The CLI ships as `pbca`. The previous name `pb` is retained as an alias on existing install scripts for one release cycle.
Install
one-line install (macOS / Linux)
curl -fsSL https://pastebin.ca/cli/install.sh | shThe script auto-detects your OS and architecture, downloads the matching binary, and installs to /usr/local/bin/pbca (override with PBCA_INSTALL_PREFIX). After install, run pbca login to authorize this device.
Direct downloads
platform binaries
Verify with sha256sum against the listed digest.
| platform | file | sha256 | size |
|---|---|---|---|
| loading… | |||
Usage
common commands
pbca login # device-code auth in browser
pbca paste --expires-in 1d # pipe stdin to create a paste
pbca get <id> # fetch (uses local store for ?s= tokens)
pbca account pastes # list server-side pastes for your account
pbca account api-key list
pbca account api-key create --label "ci runner"
pbca inbox # recipient-encrypted inboxWindows
windows install
Download pbca-x86_64-pc-windows-gnu.exe from the table above, rename to pbca.exe, and place it on your PATH (for example in %USERPROFILE%\bin).