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 oursprivacyGo
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 listFor details about specific commands, use the --help flag.
Authentication
Set an API key:
export OURS_PRIVACY_API_KEY=your-api-keyGlobal 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
- Platform API Docs — authentication and full API documentation
- Platform OpenAPI Schema — the full specification for the platform API
- GitHub repository
How is this guide?