CLI & API

Interact programmatically with your Bindplane account using the CLI or direct HTTP requests.

The Bindplane CLI and REST API provide programmatic access to all Bindplane functionality, enabling automation, integration, and advanced management of your telemetry infrastructure.

Availability

📘 The CLI is available for all Bindplane plans.

📘 API access is available in Bindplane Growth and Enterprise.

Quick Start

CLI


# Install the CLI
mkdir -p ~/bindplane
curl -L -o ~/bindplane/bindplane.zip https://storage.googleapis.com/bindplane-op-releases/bindplane/latest/bindplane-ee-linux-amd64.zip
unzip ~/bindplane/bindplane.zip -d ~/bindplane/
sudo mv ~bindplane/bindplane /usr/local/bin/bindplane
mkdir -p ~/.bindplane/

# Configure with API key
bindplane profile set default --api-key YOUR_API_KEY --remote-url https://app.bindplane.com

# Get started
bindplane get agents

API

What's Included

CLI (Command Line Interface)

  • Installation: Cross-platform installation for Linux, macOS, and Windows

  • Commands: 16+ commands for managing all Bindplane resources

  • Profiles: Support for multiple environments and configurations

  • Output Formats: JSON, YAML, table, and raw output options

Key CLI Commands:

  • get - Display resources (collectors, configurations, sources, etc.)

  • apply - Apply resources

  • delete - Remove resources

  • install - Install new collectors

  • rollout - Manage configuration rollouts

  • profile - Manage connection profiles

REST API

  • Complete Coverage: All programmatic functionality available via HTTP endpoints

  • RESTful Design: Standard HTTP methods and status codes

  • JSON Responses: Consistent JSON format for all responses

  • Rate Limiting: Built-in rate limiting with exponential backoff support

API Resource Categories:

  • Agents: Manage collector instances and configurations

  • Configurations: Create and manage telemetry configurations

  • Sources & Destinations: Configure data sources and outputs

  • Organizations & Users: Manage access and permissions

  • Rollouts: Control configuration deployments

Authentication

Both CLI and API use the same authentication system with API keys.

CLI Configuration

API Headers

Common Use Cases

Automation

Integration

Bulk Operations

Error Handling

CLI

  • Exit codes indicate success/failure

  • Detailed error messages with suggestions

  • Verbose mode for debugging: --verbose

API

  • Standard HTTP status codes (200, 400, 401, 403, 404, 500)

  • JSON error responses with details:

Last updated

Was this helpful?