SDKs & CLI

CLI Installation

The corelink CLI manages secrets, triggers rotation, runs scans, and administers tenants from any terminal. Binaries for macOS, Linux, and Windows are published on the Registry page, each covered by a SHA256 manifest you can verify before running it.

Detects your platform and installs the current release
curl -fsSL https://usecorelink.com/install.sh | sh
Download, verify against the release manifest, then install
VER=1.0.1
BASE=https://usecorelink.com/static/downloads/v$VER

# pick your platform: darwin-arm64, darwin-amd64, linux-amd64, linux-arm64
curl -LO $BASE/corelink-cli-v$VER-darwin-arm64.tar.gz
curl -LO $BASE/corelink-v$VER-checksums.txt
shasum -a 256 -c corelink-v$VER-checksums.txt --ignore-missing

tar -xzf corelink-cli-v$VER-darwin-arm64.tar.gz
sudo mv tbcl-cli /usr/local/bin/corelink

# Windows: download corelink-cli-v$VER-windows-amd64.zip and add it to your PATH
1
Verify the install
Run corelink --version -- expected output: secrets version v1.0.1. The binary still prints its original internal name.
2
Authenticate
Run corelink auth login to open a browser OAuth flow. Your token is stored at ~/.config/corelink/credentials.json.
3
Set a default workspace
Run corelink workspace use <name> so subsequent commands target the right scope without flags.

Command Reference

Command Description
corelink secrets list List secrets in the current workspace
corelink secrets get <name> Retrieve a secret value (requires read permission)
corelink secrets set <name> <value> Create or update a secret
corelink rotate <name> Trigger immediate rotation
corelink scan --dir ./src Scan a directory for exposed credentials
corelink audit --tail 50 Stream the last 50 audit log entries
corelink workspace list List accessible workspaces
All documentation Question about this? Talk to us