npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sf-org-summary

v0.5.0

Published

## Overview

Downloads

54

Readme

SF Org Summary

SF Org Summary is a robust Salesforce CLI plugin designed to offer a comprehensive overview of your Salesforce Org instance(s). This tool provides valuable insights into key metadata, test results, code metrics, usage of limit-related resources, linter results, and more, enabling you to better understand and monitor your Salesforce environment.

Features

Component Summary

Utilize the Tooling API to aggregate and track metadata details. Gain a quick overview of component totals, including the last modified date.

Tests Summary

Run Apex tests and analyze the health of your codebase. Evaluate the overall test coverage of your Apex code and Flows.

Org Limits Overview

Fetch actual usage related to Salesforce Org limits to ensure you stay within the allowed thresholds.

Code Analysis

Identify and analyze potential risks in your codebase for Apex and JavaScript. Receive insights into various aspects such as severity, file location, and suggested improvements. The tool also measures the lines of code in your Apex Classes, Triggers, Aura Components, Lightning Web Components, and Static Resources, providing context by calculating the average amount of issues per line of code. The breakdown of lines of code includes total lines, comments, and actual code lines.

Health Check Score

Assess the health of your Salesforce instance with a comprehensive health check score. Understand the number of open risks versus compliance and receive detailed information about security-related settings.

Installation

Install the SF Org Summary plugin into your Salesforce CLI environment:

sf plugins:install sf-org-summary

Usage

Orgsummary Create

sf orgsummary create [flags]

Options

-m, --metadata <datapoint1,datapoint2>: Specify the data points to include in the summary.
-g, --nohealthcheck: Skip fetching and displaying Salesforce Health Check Score and Risks.
-k, --keepdata: Keep the intermediate data files generated during the summary process.
-l, --nolimits: Skip fetching and displaying Salesforce Org limits.
-s, --nocodeanalysis: Skip counting lines of code.
-t, --notests: Skip running Apex tests during the summary.
-u, --targetusername <username>: Specify the target Salesforce Org username.

Examples

Get a summary for a Salesforce org:

sf orgsummary create  -u my-org-username

Get a summary of specific components while skipping apex tests:

sf orgsummary create  -u my-org-username --notests -c ApexClass,ApexTrigger,LightningComponentBundle

Orgsummary Upload

sf orgsummary upload [flags]

Options

-f, --summaryfile <summary-file-path>: Specify the path to the summary file.
-u, --targetusername <target-org-username>: Specify the username of the target Salesforce Org.

Example

Upload an org summary to a Salesforce org:

sf orgsummary upload -f path/to/summary-file.json -u my-target-org-username