hyperdx/packages/cli
github-actions[bot] bfb455d90a
Release HyperDX (#2094)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-10 11:08:49 -07:00
..
src [HDX-3966] Improve TUI error message rendering and add SQL preview (#2095) 2026-04-10 17:12:10 +00:00
.gitignore [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00
AGENTS.md [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00
CHANGELOG.md Release HyperDX (#2094) 2026-04-10 11:08:49 -07:00
CONTRIBUTING.md [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00
eslint.config.mjs [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00
package.json Release HyperDX (#2094) 2026-04-10 11:08:49 -07:00
README.md [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00
tsconfig.json [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00
tsup.config.ts [HDX-3919] Add @hyperdx/cli package — terminal TUI, source map upload, and agent-friendly commands (#2043) 2026-04-09 20:21:34 +00:00

@hyperdx/cli

Command line interface for HyperDX.

Uploading Source Maps

Upload JavaScript source maps to HyperDX for stack trace de-obfuscation.

In your build pipeline, run the CLI tool:

npx @hyperdx/cli upload-sourcemaps \
  --serviceKey "$HYPERDX_API_ACCESS_KEY" \
  --apiUrl "$HYPERDX_API_URL" \
  --path .next \
  --releaseId "$RELEASE_ID"

You can also add this as an npm script:

{
  "scripts": {
    "upload-sourcemaps": "npx @hyperdx/cli upload-sourcemaps --path=\".next\""
  }
}

Options

Flag Description Default
-k, --serviceKey <key> HyperDX service account API key
-p, --path <dir> Directory containing sourcemaps .
-u, --apiUrl <url> HyperDX API URL (required for self-hosted deployments)
-rid, --releaseId <id> Release ID to associate with the sourcemaps
-bp, --basePath <path> Base path for the uploaded sourcemaps

Optionally, set the HYPERDX_SERVICE_KEY environment variable to avoid passing the --serviceKey flag.