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-demo-utils

v1.3.5

Published

[![NPM](https://img.shields.io/npm/v/sf-demo-utils.svg?label=sf-demo-utils)](https://www.npmjs.com/package/sf-demo-utils) [![Downloads/week](https://img.shields.io/npm/dw/sf-demo-utils.svg)](https://npmjs.org/package/sf-demo-utils) [![License](https://img

Downloads

62

Readme

SF Demo Utils CLI Plugin Documentation

Welcome to the documentation for the sf-demo-utils Salesforce CLI plugin. This plugin provides a set of commands designed to assist with managing and automating various tasks related to Salesforce development, such as creating scratch orgs, updating transaction security policies, and setting user passwords.

Overview

The sf-demo-utils plugin is an extension for the Salesforce CLI, enabling users to perform specific actions without leaving their terminal environment. The primary commands available through this plugin include:

  1. Create Scratch Org: Automatically provisions a new scratch org based on a provided configuration file and sets it as the default username if specified.
  2. Update Transaction Security Policies: Updates transaction security policies in a specified directory to use the current user's username.
  3. Set User Password: Allows administrators to set or reset the password for a user identified by their first and last name.

Installation

To install the sf-demo-utils plugin, you can use the following command:

sf plugins install sf-demo-utils

Commands

1. Create Scratch Org

Summary

Creates a scratch org with a unique username based on provided prefix and domain.

Description

This command allows users to set the username prefix and domain, then generates a new org using these parameters along with other optional flags such as duration and namespace settings. The generated org's default username is automatically set if specified.

Examples

sf demoutil org create scratch -p ace -e ventura.com -d 20 -w 10 -f config/project-scratch-def.json -s

2. Update Transaction Security Policies

Summary

Updates transaction security policies in a specified directory to use the current user's username.

Description

This command reads through all applicable policy files in the given directory and updates them to include the currently set username, ensuring consistency across environments.

Examples

sf demoutil tsp update -d /your/project/directory

3. Set User Password

Summary

Sets or resets a user's password based on their first and last name.

Description

Users can specify the first and last names of the target user to reset their password securely, ensuring that all necessary permissions are met before making changes.

Examples

sf demoutil user password set -l User -f John -p newPassword123

Usage

Each command can be invoked with specific flags and arguments as outlined in the examples provided above. Ensure you have the necessary permissions to execute these actions within your Salesforce environment.

Support

For further assistance or if you encounter any issues, please refer to the official documentation for each command or contact [email protected].


Thank you for using the sf-demo-utils plugin! We hope this documentation aids in your automation and development workflows on Salesforce platforms.