From f86eb8b908ffa5ccb84e33293d71e4643c11cb80 Mon Sep 17 00:00:00 2001 From: Warren <5959690+wrn14897@users.noreply.github.com> Date: Thu, 27 Jun 2024 10:09:41 -0700 Subject: [PATCH] docs: update README --- packages/cli/README.md | 4 ++-- packages/cli/src/lib.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/README.md b/packages/cli/README.md index 8aee9f1d..1c2a76de 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -5,7 +5,7 @@ In your build pipeline, you will need to run the CLI tool. Here's how to run it: ```sh -npx @hyperdx/cli upload-sourcemaps --path="/path/to/sourcemaps" --apiKey="your-api-key" +npx @hyperdx/cli upload-sourcemaps --path="/path/to/sourcemaps" --serviceKey="your-service-account-api-key" ``` You can also add this as an npm script @@ -20,7 +20,7 @@ You can also add this as an npm script } ``` -Optionally, you can set the `HYPERDX_API_ACCESS_KEY` environment variable to avoid passing the `apiKey` flag. +Optionally, you can set the `HYPERDX_SERVICE_KEY` environment variable to avoid passing the `serviceKey` flag. ## Contributing diff --git a/packages/cli/src/lib.ts b/packages/cli/src/lib.ts index 638cdfa4..b15a0bec 100644 --- a/packages/cli/src/lib.ts +++ b/packages/cli/src/lib.ts @@ -23,8 +23,8 @@ export const uploadSourcemaps = async ({ releaseId?: string; }) => { if (!serviceKey || serviceKey === '') { - if (process.env.HYPERDX_API_ACCESS_KEY) { - serviceKey = process.env.HYPERDX_API_ACCESS_KEY; + if (process.env.HYPERDX_SERVICE_KEY) { + serviceKey = process.env.HYPERDX_SERVICE_KEY; } else { throw new Error('service key cannot be empty'); }