github hyperdxio/hyperdx cli-v0.4.1
@hyperdx/cli v0.4.1

3 hours ago

@hyperdx/cli v0.4.1

Patch Changes

  • f6a1d02: Add support for event patterns in MCP server, reduce code duplication

  • 253cf5b: Fix CLI version flag reporting hardcoded 0.1.0 instead of the actual package version

  • 4104364: feat: support multiple teams and kubectx-style team switching in the CLI

    Adds three new commands for users that belong to multiple teams (HyperDX Cloud /
    EE):

    • hdx team list — list every team the authenticated user belongs to, marking
      the active one
    • hdx team current — print the currently active team
    • hdx team use <name-or-id> — switch the active team (matched by team ID or
      case-insensitive name)

    The active team is persisted to ~/.config/hyperdx/cli/session.json so the
    choice survives across CLI invocations, and the CLI now sends an x-hdx-team
    header on every API and ClickHouse-proxy request so the server scopes data to
    the chosen team. hdx auth status also surfaces the active team.

    On single-team OSS deployments these commands are effectively no-ops.


Installation

npm (recommended):

npm install -g @hyperdx/cli

Or run directly with npx:

npx @hyperdx/cli tui -s <your-hyperdx-api-url>

Manual download (standalone binary, no Node.js required):

# macOS Apple Silicon
curl -L https://github.com/hyperdxio/hyperdx/releases/download/cli-v0.4.1/hdx-darwin-arm64 -o hdx
# macOS Intel
curl -L https://github.com/hyperdxio/hyperdx/releases/download/cli-v0.4.1/hdx-darwin-x64 -o hdx
# Linux x64
curl -L https://github.com/hyperdxio/hyperdx/releases/download/cli-v0.4.1/hdx-linux-x64 -o hdx

chmod +x hdx && sudo mv hdx /usr/local/bin/

Usage

hdx auth login -s <your-hyperdx-api-url>
hdx tui

Don't miss a new hyperdx release

NewReleases is sending notifications on new releases.