bosshogg 2026.5.3

BossHogg — the agent-first PostHog CLI. Feature flags, HogQL queries, insights, dashboards, cohorts, persons, events, experiments, and more — from the terminal or from a Claude Code / Cursor / other coding-agent loop. Ships with a Claude Code skill (~200 idle tokens) that teaches models how to use it.
Documentation
use crate::error::Result;
use crate::output;
use serde::Serialize;

#[derive(Serialize)]
struct VersionInfo {
    version: &'static str,
}

pub fn execute(json: bool) -> Result<()> {
    let info = VersionInfo {
        version: env!("CARGO_PKG_VERSION"),
    };
    if json {
        output::print_json(&info);
    } else {
        println!("bosshogg {}", info.version);
    }
    Ok(())
}