SDKsPlatform

CLI (platform)

Install and use the Ours Privacy CLI to manage sources, destinations, consent settings, and more from your terminal.

Ours Privacy CLI

The Ours Privacy CLI lets you manage your account configuration directly from the terminal. Use it to automate setup, script bulk operations, or integrate with CI/CD pipelines.

Installation

Homebrew

brew tap with-ours/tap
brew install oursprivacy

Go

go install 'github.com/with-ours/platform-cli/cmd/oursprivacy@latest'

Usage

The CLI follows a resource-based command structure:

oursprivacy [resource] <command> [flags...]
oursprivacy sources list

For details about specific commands, use the --help flag.

Authentication

Set an API key:

export OURS_PRIVACY_API_KEY=your-api-key

Global Flags

  • --help — Show command line usage
  • --debug — Enable debug logging (includes HTTP request/response details)
  • --version, -v — Show the CLI version
  • --base-url — Use a custom API backend URL
  • --format — Change the output format (auto, explore, json, jsonl, pretty, raw, yaml)

Resources

How is this guide?

On this page