Owlmetry
CLI

CLI

Manage Owlmetry from the command line — query events, manage projects, and integrate with AI agents.

The Owlmetry CLI (@owlmetry/cli) lets you manage your Owlmetry instance from the terminal. Use it to query events, create and manage projects and apps, inspect metrics and funnels, and view audit logs. Companion agent skills for the CLI and SDKs are distributed separately as the owlmetry-skills Claude Code plugin marketplace.

Key capabilities

  • Query events with flexible filters, date ranges, and output formats
  • Manage resources — projects, apps, metrics, and funnels
  • Inspect metrics — view definitions, query aggregations, and browse raw metric events
  • Analyze funnels — run funnel queries with open/closed modes and experiment segmentation
  • Triage issues — list, claim, resolve, silence, snooze, merge, and comment on error issues
  • Manage integrations — add and sync third-party providers like RevenueCat
  • Run background jobs — trigger, watch, and cancel jobs, and browse run history
  • Inspect attachments — list, download, and delete event attachments uploaded by SDKs
  • List app users — filter by billing tier, anonymous/real, or search by ID
  • Audit trail — review who did what across your team
  • Multi-team support — authenticate with multiple teams and switch between them with owlmetry switch
  • AI agent integration — companion skills for CLI, Node SDK, and Swift SDK via the owlmetry-skills Claude Code plugin marketplace

Command groups

CommandPurpose
authSend verification codes and exchange them for agent API keys
setupConfigure the CLI with an existing agent API key
whoamiShow the authenticated identity and list configured profiles
switchList configured team profiles or switch the active one
projectsList, view, create, and update projects
appsList, view, create, and update apps within a project
eventsQuery events with filters, time ranges, and pagination
investigateBuild a breadcrumb timeline around a specific event
usersList app users with billing-tier and anonymous/real filters
metricsManage metric definitions and query aggregations or raw events
funnelsManage funnel definitions and run funnel analytics
issuesView and manage error issues (resolve, silence, snooze, claim, merge, comment)
integrationsManage third-party integrations (e.g. RevenueCat)
jobsList, view, trigger, and cancel background jobs
attachmentsList, show, download, and delete event attachments; show project usage
audit-logView audit log entries for team actions
ratingsView per-country App Store rating aggregates (incl. star-only)
reviewsList, view, and respond to App Store / Play Store reviews
skillsPrint instructions for installing the owlmetry-skills Claude Code plugin marketplace

Global options

Every command accepts these global flags. They can be placed before or after the subcommand.

owlmetry [global options] <command> [command options]
FlagDescriptionDefault
--format <format>Output format: table, json, or logtable
--endpoint <url>Owlmetry API server URLFrom config or https://api.owlmetry.com
--api-key <key>API key (overrides config file)From config or OWLMETRY_API_KEY env var
--ingest-endpoint <url>Ingest endpoint URL (for SDK setup commands)Derived from API endpoint
--team <name-or-id>Use a specific team profile for this commandActive team from config
--versionPrint CLI version
--helpShow help for any command

Configuration resolution

The CLI resolves configuration in this order:

  1. Command-line flags (--endpoint, --api-key, --team)
  2. Environment variables (OWLMETRY_ENDPOINT, OWLMETRY_API_KEY)
  3. Config file (~/.owlmetry/config.json)

See Authentication for details on setting up the config file.

Output formats

The --format flag controls how results are displayed:

  • table (default) — human-readable tables with aligned columns
  • json — raw JSON, suitable for piping to jq or other tools
  • log — chronological log view, used by events and investigate commands
# Default table output
owlmetry events --since 1h

# JSON for scripting
owlmetry events --since 1h --format json

# Log view for event streams
owlmetry events --since 1h --format log

Ready to get started?

Connect your agent via MCP or CLI and start tracking.