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

mydxcli

v1.0.5

Published

i want complete profile xml

Readme

mydxcli or timesavercli

Some common scenarios

i want complete profile xml

i want full profile salesforce org

i want complete permissionset

i want to get profile with CRUD

If you find yourself leaning to something similar to above mentioned scenarios.Then is light weight cli module helps you.

What is this about

There is a common scenario among developers to fetch complete Profile or PermissionSet i.e with CRUD and there are couple of known ways to fetch them by generating package.xml and then retrieve based on that.

You might be searching for package.xml generators and then use it in workbench to fetch the desired profile xml. But, this module has done all these for you.You don't have search for package.xml generators or write one on your own.

How do i install it

npm install -g mydxcli if you want to use it as CLI

npm install mydxcli if you want to use it in elsewhere

Type below command

mydxcli --help

Available commands for CLI

mydxcli -u Myusername -getProfile "Profile1,Profile2" --getPermissionSet "PS1,PS2"

--username or -u : You org's username or alias name
Required

--getProfile or -gP : Specify profile names you want to retrieve
optional : if value is not specified , it will fetch all profiles in org

--getPermissionSet or -gPs : Specify PermissionSet names you want to retrieve
optional : if value is not specified , it will fetch all PermissionSets in org

--directory -d : The Directory where you want to retrieve the files
if not specified default folder will be mydxcli

--help // Fetches available options

Is there any way to use it through code

Yes, We considered that. Here is an Example

var mydxcli=require('mydxcli');
var nopt = require("nopt"),
  knownOpts = { "username" : [String],
                "getProfile":[String,Boolean],
				"getPermissionSet":[String,Boolean],
                "help":[Boolean],
				"directory":[String],
                },
  shortHands = { "u" : ["--username"],
                "gP" :["--getProfile"],
				"gPs":["--getPermissionSet"],
                "h":["--help"],
				"d":["--directory"],
            },
helper="\n-u or --username\t<username or alias name>\n\n-gP or --getProfile\t<Profilename> if not mentioned all profile will be taken by default.for mutiple profiles enter them seperate by comma(,)",
optionparser = nopt(knownOpts, shortHands, process.argv, 2);
		mydxcli.runOperation(optionparser,function(cb){
			console.log('Reached Final Callback from module,Files are retrieved. Exiting from code',cb);
			process.exit(1);
			
		},path.resolve(optionparser.directory));
		
/*
Syntax: mydxcli.runOperation(optionparser, callback,directory)

optionparser expects argument  in object format. Ex: {'username':'myusername','getProfile':'profiel1,profile2'}
kind of parsed cmd line arguments as above. in this exampel i used **nopt** the option parser and would recommend using it.
*/

NOTE: This node module aka timesaver cli as we call is dependent on SFDX CLI and would expect command to be run for an org.

Search over internet to fetch sfdx cli if you don't already have it. Then authenticate the org.