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 clap::Args;

use crate::commands::config::{self as cfg_cmd};
use crate::error::Result;

#[derive(Args, Debug)]
pub struct UseArgs {
    /// Context name to switch to.
    pub name: String,
}

// No `debug` or `context` parameters: `use` is a pure config-local operation
// that writes the active context name to disk with no API call.
pub async fn execute(args: UseArgs, json_mode: bool) -> Result<()> {
    cfg_cmd::run(
        cfg_cmd::ConfigArgs {
            command: cfg_cmd::ConfigCommand::UseContext { name: args.name },
        },
        json_mode,
    )
    .await
}