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

pole-utils

v0.0.10

Published

Utility scripts for Salesforce deployment and retrieval operations.

Readme

pole-utils

Utility scripts for Salesforce deployment and retrieval operations.

Installation

npm install -g pole-utils

Or install locally in your project:

npm install pole-utils

Commands

pole-deploy - Deploy Delta Changes

Deploys only the changed files between commits or branches to a Salesforce org. Note: Will NOT deploy deleted files.

Usage

npx pole-deploy --diff <commit|branch> --target <org-alias> [options]

Options

  • --diff (required) - The commit hash or branch to compare against
  • --target (optional) - The alias for the target org (defaults to the default org)
  • --deployinclude (optional) - Include files from .deployinclude file
  • --dry-run (optional) - Perform a dry run without actually deploying
  • --testlevel (optional) - Test level for deployment (default: NoTestRun)
  • --json (optional) - Output results in JSON format

Examples

# Deploy changes between current branch and develop
npx pole-deploy --diff develop --target dev

# Deploy changes from a specific commit
npx pole-deploy --diff b48a0e8402039fd9e76c43601d0f9ade459f2474 --target dev

# Deploy changes with additional files from .deployinclude
npx pole-deploy --diff "master master~3" --target dev --deployinclude

# Dry run deployment
npx pole-deploy --diff develop --target dev --dry-run

pole-retrieve - Retrieve Recent Changes

Retrieves metadata that has been modified in a Salesforce org within a specified time period.

Usage

npx pole-retrieve --target <org-alias> [options]

Options

  • --target (optional) - The alias for the target org (defaults to the default org)
  • --days (optional) - Number of days to look back for changes (default: 1)
  • --only-my-changes (optional) - Filter to only retrieve changes made by the currently authenticated user
  • --json (optional) - Output results in JSON format

Examples

# Retrieve changes from the last day
npx pole-retrieve --target dev

# Retrieve changes from the default org the last 100 days
npx pole-retrieve --days 100

# Retrieve only your changes from the last 7 days
npx pole-retrieve --days 7 --only-my-changes

Fork Git Client Integration

If you use Fork Git Client, you can install custom commands for easy access to these utilities.

After installing pole-utils locally in your project, run the following command to copy the custom commands configuration to Fork:

npm explore pole-utils -- npm run fork:copy-commands

This will copy the custom commands configuration to Fork, giving you GUI buttons to:

  • Deploy files in a branch
  • Deploy files in a commit
  • Deploy a selected file
  • Retrieve recent changes from an org

If installed globally, the custom commands will be found by running:

which npm

E.g: /opt/homebrew/bin/npm Custom-commands.json is found in the /opt/homebrew/lib/node_modules/pole-utils/fork/ directory.

Requirements

  • Node.js
  • Git (for pole-deploy command)

How It Works

pole-deploy

  1. Uses git diff to identify changed files
  2. Filters for Salesforce metadata in force-app/ directory
  3. Optionally includes additional files from .deployinclude
  4. Deploys only the changed files using Salesforce CLI

pole-retrieve

  1. Optionally gets the current user's ID (when --only-my-changes is used)
  2. Queries the target org for recent changes to:
    • Permission Sets
    • FlexiPages
    • Other metadata types via SourceMember
  3. Retrieves the identified metadata using Salesforce CLI

License

ISC