
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@coralogix/rum-cli
Advanced tools
The Coralogix RUM CLI is a command-line tool designed to simplify the process of uploading RUM (Real User Monitoring) data. It provides a streamlined way to authenticate with the Coralogix API and manage source maps, dSYM files, and ProGuard mappings.
To install the Coralogix RUM CLI, follow these steps:
npm install -g @coralogix/rum-cli
coralogix-rum-cli
in your terminal.Here are some examples of how to use the Coralogix RUM CLI:
Upload source maps:
coralogix-rum-cli upload-source-maps -k <privateKey> -a <application> -v <version> -f <folderPath> -e <env> -c <commitHash> -n <repoName> -o <orgName>
Upload React Native source maps:
coralogix-rum-cli upload-react-native-source-maps -k <privateKey> -a <application> -v <version> -f <folderPath> -e <env> -c <commitHash> -n <repoName> -o <orgName>
Upload dSYM file:
coralogix-rum-cli upload-dsym -k <privateKey> -a <application> -v <version> -f <folderPath> -e <env> -c <commitHash> -n <repoName> -o <orgName>
Upload ProGuard file:
coralogix-rum-cli upload-proguard -k <privateKey> -a <application> -v <version> -f <folderPath> -e <env> -c <commitHash> -n <repoName> -o <orgName>
-k, --private-key <privateKey>
: Private key to authenticate with the Coralogix API.-a, --application <application>
: Name of the application.-v, --version <version>
: The application version (must match the version used by the RUM SDK).-f, --folder-path <folderPath>
: Path to the folder containing the Source Maps, dSYM file, or ProGuard mapping file.-e, --env <env>
: Your environment (e.g., EU1, US1).-c, --commit-hash <commitHash>
: GitHub commit hash (optional).-n, --repo-name <repoName>
: GitHub repository name (optional).-o, --org-name <orgName>
: GitHub organization name (optional).-h, --help
: Display help.Specify the appropriate environment using the -e
option:
https://ng-api-grpc.coralogix.com:443
(eu-west-1, Ireland)https://ng-api-grpc.eu2.coralogix.com:443
(eu-north-1, Stockholm)https://ng-api-grpc.coralogix.us:443
(us-east-2, Ohio)https://ng-api-grpc.cx498.coralogix.com:443
(us-west-2, Oregon)https://ng-api-grpc.app.coralogix.in:443
(ap-south-1, Mumbai)https://ng-api-grpc.coralogixsg.com:443
(ap-southeast-1, Singapore)https://ng-api-grpc.ap3.coralogix.com:443
(ap-southeast-3, Asia Pacific (Jakarta))Ensure your files do not exceed the following size limits:
To automate the upload process in your CI pipeline:
Create a Shell Script:
upload-source-maps.sh
, upload-react-native-source-maps.sh
, upload-dsym.sh
, or upload-proguard.sh
).Template for the Script:
#! /usr/bin/env bash
# Replace these values with your actual information
REPO_NAME="your-repo-name"
ORG_NAME="your-github-username"
APPLICATION="your-application-name"
ENV="your-environment"
FILES_PATH="your-files-path"
PRIVATE_KEY="your-coralogix-private-key"
VERSION="your-application-version"
# Get the commit hash using git rev-parse
COMMIT_HASH=$(git rev-parse HEAD)
# Run Coralogix RUM CLI to upload the respective files
coralogix-rum-cli upload-<command> -k "$PRIVATE_KEY" -a "$APPLICATION" -v "$VERSION" -f "$FILES_PATH" -e "$ENV" -c "$COMMIT_HASH" -n "$REPO_NAME" -o "$ORG_NAME"
Replace <command>
with source-maps
, react-native-source-maps
, dsym
, or proguard
based on the file type.
For manual uploads, use the corresponding command in your terminal:
coralogix-rum-cli upload-<command> -k "$PRIVATE_KEY" -a "$APPLICATION" -v "$VERSION" -f "$FILES_PATH" -e "$ENV" -c "$COMMIT_HASH" -n "$REPO_NAME" -o "$ORG_NAME"
Replace <command>
with one of the following as needed:
source-maps
react-native-source-maps
dsym
proguard
IMPORTANT: The $VERSION parameter must exactly match the version specified in the SDK initialization (init) function configuration in your Coralogix SDK for Browsers |
---|
You can provide additional GitHub-related options to enhance source map management:
-c, --commit-hash <commitHash>
: The commit hash associated with the source maps.-n, --repo-name <repoName>
: The repository name where the source code is hosted.-o, --org-name <orgName>
: The organization user associated with the repository.These options are optional but can improve issue tracking within Coralogix RUM.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
coralogix rum cli
We found that @coralogix/rum-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.