Official command line interface for the Linkbreakers API.
The binary name is linkbreakers, with commands shaped for direct usage by humans, scripts, and LLMs:
linkbreakers auth set-token --token <api-token>
linkbreakers links list --page-size 20
linkbreakers links create --destination https://example.com --name "Launch link"
linkbreakers custom-domains check <domain-id>
linkbreakers raw GET /v1/links?pageSize=5brew install linkbreakers-com/tap/linkbreakersnpm install -g linkbreakers-cliThe npm package downloads the prebuilt binary for your platform from GitHub Releases and verifies it against the release checksums.txt. Note that the npm package linkbreakers is the TypeScript SDK; the CLI is linkbreakers-cli.
curl -fsSL https://cli.linkbreakers.com/install.sh | bashThe installer detects OS and architecture and installs the latest GitHub Release.
Use npm, or download the binary directly:
$version = "<version>"
Invoke-WebRequest -Uri "https://github.com/linkbreakers-com/linkbreakers-cli/releases/download/v$version/linkbreakers-cli_${version}_windows_amd64.zip" -OutFile "linkbreakers.zip"
Expand-Archive -Path "linkbreakers.zip" -DestinationPath ".\\linkbreakers"
Move-Item ".\\linkbreakers\\linkbreakers.exe" "$HOME\\bin\\linkbreakers.exe"Replace <version> with a real release like 1.140.0. All archives are on the Releases page.
The CLI checks periodically for new releases and tells you how to update for the way it was installed:
- Homebrew:
brew upgrade linkbreakers - npm:
npm install -g linkbreakers-cli@latest - Install script or direct download:
linkbreakers self-update(or rerun the installer)
Use either:
LINKBREAKERS_TOKENlinkbreakers auth set-token --token <api-token>
Optional overrides:
LINKBREAKERS_BASE_URLLINKBREAKERS_OUTPUT=json|table
First-class commands currently included:
linkbreakers links ...linkbreakers directories ...linkbreakers custom-domains ...linkbreakers raw METHOD PATHlinkbreakers completion ...linkbreakers self-updatelinkbreakers version
The raw command is the fallback for any endpoint that does not yet have a dedicated subcommand.
This repo includes:
linkbreakers help- per-command markdown docs in
docs/commands/ llms.txtat repo root
To regenerate docs after CLI changes:
go run ./cmd/linkbreakers gendocsReleases are automated through GitHub Actions:
- The API repo dispatches
update-sdk. - This repo fetches the latest Swagger version.
- The internal Go client is regenerated from the OpenAPI spec.
- Command docs are regenerated.
- A git tag is created.
- GoReleaser publishes macOS, Linux, and Windows binaries to GitHub Releases and the Homebrew cask to
linkbreakers-com/homebrew-tap. - The
npm/wrapper is published to npm aslinkbreakers-cliwith the same version, through npm trusted publishing (no token). A failure there does not block the GitHub release; it opens arelease-failureissue.
Publishing to Homebrew needs the HOMEBREW_TAP_SSH_KEY repository secret (private half of a write deploy key on linkbreakers-com/homebrew-tap).
make generate
make docs
make test
make build