A CLI tool for Surfer SEO built with Go. Create content editors, run SEO audits, and check content scores from the command line.
brew tap builtbyrobben/tap
brew install surfer-cliDownload the latest release from GitHub Releases.
git clone https://github.com/builtbyrobben/surfer-cli.git
cd surfer-cli
make build# Interactive (secure, recommended)
surfer-cli auth set-key --stdin
# From environment variable
echo $SURFER_API_KEY | surfer-cli auth set-key --stdin
# From argument (discouraged - exposes in shell history)
surfer-cli auth set-key YOUR_API_KEYsurfer-cli auth statussurfer-cli auth removeSURFER_API_KEY- Override stored credentials (also used by Surfer's official API)SURFER_CLI_KEYRING_BACKEND- Force keyring backend (auto/keychain/file)SURFER_CLI_KEYRING_PASS- Password for file backend (headless systems)
# List all content editors
surfer-cli editors list
# Create a new content editor
surfer-cli editors create --keywords "surfer seo guide,content optimization"
# Create with options
surfer-cli editors create --keywords "keyword1,keyword2" --language en --location "United States"
# Get editor details
surfer-cli editors get <editor-id>
# Get content score
surfer-cli editors score <editor-id># List all audits
surfer-cli audits list
# Create a new audit
surfer-cli audits create --url https://example.com/page# JSON output (for scripting)
surfer-cli editors list --json
# Plain text output (TSV)
surfer-cli editors list --plainThis CLI wraps the Surfer SEO API.
- Base URL:
https://app.surferseo.com/api/v1 - Auth:
API-KEYheader
- Go 1.22+
- Make
make build # Build binary
make test # Run tests
make lint # Run linter
make ci # Run full CI suite
make tools # Install dev toolsMIT
Contributions are welcome! Please read our contributing guidelines before submitting PRs.