@hyperdx/cli 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,32 +1,40 @@
1
- # Command Line Interface for HyperDX
1
+ # @hyperdx/cli
2
2
 
3
- ## Uploading source maps to HyperDX
3
+ Command line interface for HyperDX.
4
4
 
5
- In your build pipeline, you will need to run the CLI tool. Here's how to run it:
5
+ ## Uploading Source Maps
6
6
 
7
- ```sh
8
- npx @hyperdx/cli upload-sourcemaps --path="/path/to/sourcemaps" --serviceKey="your-service-account-api-key"
7
+ Upload JavaScript source maps to HyperDX for stack trace de-obfuscation.
8
+
9
+ In your build pipeline, run the CLI tool:
10
+
11
+ ```bash
12
+ npx @hyperdx/cli upload-sourcemaps \
13
+ --serviceKey "$HYPERDX_API_ACCESS_KEY" \
14
+ --apiUrl "$HYPERDX_API_URL" \
15
+ --path .next \
16
+ --releaseId "$RELEASE_ID"
9
17
  ```
10
18
 
11
- You can also add this as an npm script
19
+ You can also add this as an npm script:
12
20
 
13
21
  ```json
14
- // In package.json
15
-
16
22
  {
17
23
  "scripts": {
18
- "upload-sourcemaps": "npx @hyperdx/cli upload-sourcemaps --path=\"/path/to/sourcemaps\""
24
+ "upload-sourcemaps": "npx @hyperdx/cli upload-sourcemaps --path=\".next\""
19
25
  }
20
26
  }
21
27
  ```
22
28
 
23
- Optionally, you can set the `HYPERDX_SERVICE_KEY` environment variable to avoid passing the `serviceKey` flag.
29
+ ### Options
24
30
 
25
- ## Contributing
31
+ | Flag | Description | Default |
32
+ | ------------------------- | ------------------------------------------------------ | ------- |
33
+ | `-k, --serviceKey <key>` | HyperDX service account API key | |
34
+ | `-p, --path <dir>` | Directory containing sourcemaps | `.` |
35
+ | `-u, --apiUrl <url>` | HyperDX API URL (required for self-hosted deployments) | |
36
+ | `-rid, --releaseId <id>` | Release ID to associate with the sourcemaps | |
37
+ | `-bp, --basePath <path>` | Base path for the uploaded sourcemaps | |
26
38
 
27
- You can test your changes locally by running the following commands:
28
-
29
- ```sh
30
- yarn build
31
- node dist/index.js upload ...
32
- ```
39
+ Optionally, set the `HYPERDX_SERVICE_KEY` environment variable to avoid passing
40
+ the `--serviceKey` flag.