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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sf-plugin-metadata-coverage

v1.0.7

Published

sf plugin to check the metadata coverage report for the given source

Downloads

44

Readme

sf-plugin-metadata-coverage

sf plugin to check the metadata coverage report for the given source

Metadata Coverage Report

screenshot-ebikes-lwc-2gp-unlocked-v64.png

Installation

sf plugins install sf-plugin-metadata-coverage

Usage

$ sf metadata-coverage check --source-dir force-app --2gp-unlocked
Downloading Metadata Coverage Report v64... done
Found 38 metadata type to check.
All metadata types are supported.

The command prints metadata types that are not supported and exits with an error code.

$ sf metadata-coverage check --source-dir force-app --2gp-managed
Using cached Metadata Coverage Report v64.
Found 38 metadata type to check.
=== Unsupported Metadata Types

┌───────────────────────┬───────────────────┬───────────────────────┐
│ Type                  │ Managed Packaging │ Members               │
├───────────────────────┼───────────────────┼───────────────────────┤
│ CustomHelpMenuSection │ false             │ CustomHelpMenuSection │
└───────────────────────┴───────────────────┴───────────────────────┘

Error (2): Some metadata types are not supported.

Example Use Cases

Is the Metadata Type "CustomHelpMenuSection" supported for a 2GP Managed Package?

sf metadata-coverage check -m CustomHelpMenuSection --2gp-managed

... or maybe in the upcoming release?

sf metadata-coverage check -m CustomHelpMenuSection --2gp-managed --api-version 65.0

Can I create an Unlocked Package from my source directory?

sf metadata-coverage check --source-dir force-app --2gp-unlocked

Can I convert my 1GP Managed Package to a 2GP Managed Package?

sf project retrieve start --package-name MyPkg --target-metadata-dir src --unzip --target-org my-pkg-org
sf metadata-coverage check --manifest src/unpackaged/package.xml --2gp-managed

Commands

sf metadata-coverage check

Check the Metadata Coverage for the given source directory, metadata type or package.xml.

USAGE
  $ sf metadata-coverage check [--json] [--flags-dir <value>] [--api-version <value>] [-d <value>...] [-x <value>] [-m
    <value>...] [--1gp-managed] [--1gp-unmanaged] [--2gp-managed] [--2gp-unlocked] [--2gp-unlocked-with-namespace]
    [--source-tracking] [--tooling-api] [--metadata-api] [--apex-metadata-api] [--changesets]

FLAGS
  --api-version=<value>  The API version of the Metadata Coverage Report to use.

SOURCES FLAGS
  -d, --source-dir=<value>...  File paths for source to check.
  -m, --metadata=<value>...    Metadata component names to check.
  -x, --manifest=<value>       File path for the manifest (package.xml) that specifies the components to check.

METADATA COVERAGE CHANNELS FLAGS
  --1gp-managed
  --1gp-unmanaged
  --2gp-managed
  --2gp-unlocked
  --2gp-unlocked-with-namespace
  --apex-metadata-api
  --changesets
  --metadata-api
  --source-tracking
  --tooling-api

GLOBAL FLAGS
  --flags-dir=<value>  Import flag values from a directory.
  --json               Format output as json.

EXAMPLES
  $ sf metadata-coverage check --source-dir force-app --2gp-unlocked

  $ sf metadata-coverage check --manifest src/package.xml --1gp-managed

  $ sf metadata-coverage check --metadata CustomHelpMenuSection --2gp-unlocked

  $ sf metadata-coverage check --metadata CustomHelpMenuSection --2gp-unlocked --2gp-managed

  $ sf metadata-coverage check --metadata CustomHelpMenuSection --2gp-managed --api-version 65.0

See code: lib/commands/metadata-coverage/check.js

Development

After cloning this repository, install the dependencies:

npm ci

Use bin/dev.js to run the plugin while development

./bin/dev.js metadata-coverage check -h

or link it with sfdx

sf plugins link
sf which metadata-coverage check
sf metadata-coverage check -h

Testing

npm run test