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

@venkat.polisetti/crm-sfdx-plugin

v2.0.9

Published

Sfdx CLI plugin for automating mundane tasks such as setting FLS etc.,

Downloads

44

Readme

crm-sfdx-plugin

Version Downloads/week License

$ sfdx plugins:install @venkat.polisetti/crm-sfdx-plugin

sfdx crm:permset:assign

Assign a permset to one or more users

USAGE
  $ sfdx crm:permset:assign

OPTIONS
  -c, --checkonly                                 Just display details, no updates are made, defaults to false.

  -f, --filter=filter                             Analogous to SOQL where clause to pull usernames from Standard User
                                                  Object. Any queryable field in User Obect can be used.
                                                  Examples:

                                                  "Profile.Name LIKE 'System Admin%' AND Department = 'IT'

  -n, --permsetlabel=permsetlabel                 (required) A single Permission Set. Use Label of the Perm set

  -o, --onbehalfof=onbehalfof                     Comma-separated list of usernames. if --filter is also specified, this
                                                  flag is combined in the where clause with an OR

  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org

  -v, --verbose                                   Output to screen in csv format, defaults to false unless --checkonly
                                                  flag is set

  --apiversion=apiversion                         override the api version used for api requests made by this command

  --json                                          format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx crm:permset:assign
             -u myalias
             --permsetlabel="Dreamhouse"
             --filter="Profile.Name = 'Lightning Sales'
  $ sfdx crm:permset:assign
             -u myalias
             --permsetlabel="Dreamhouse"
             --o='[email protected]'

See code: src/commands/crm/permset/assign.ts

sfdx crm:profile:fieldpermissions:set

Sets Field Level Security of fields for a list of profiles.

USAGE
  $ sfdx crm:profile:fieldpermissions:set

OPTIONS
  -c, --checkonly
      Just display details, no updates are made to profiles, defaults to false.

  -e, --editaccess=editaccess
      edit permission, defaults to 'true'. Valid values are 'true' or 'false'.

  -f, --filter=filter
      Analogous to SOQL where clause to pull fields from SObjects. Allowed fields: CreatedDate, CreatedBy, 
      LastModifiedDate, LastModifiedBy and DeveloperName. DeveloperName here referes to the SObject custom field.

      Examples:

      LastModifiedBy.LastName='Doe' AND lastModifiedDate = TODAY AND DeveloperName like 'MyCustom%'

  -o, --sobjects=sobjects
      (required) List of SObjects separated by commas.

  -p, --profiles=profiles
      (required) List of profiles separated by commas. You can also use wildcards as part of this parameter to match on 
      profile names (only ^,$,* are supported, ^ matches start of the profile name, $ matches end of the profile name and 
      * matches one or more characters anywhere in a profile name).

  -r, --readaccess=readaccess
      read permission, defaults to 'true'. Valid values are 'true' or 'false'.

  -u, --targetusername=targetusername
      username or alias for the target org; overrides default target org

  -v, --verbose
      Output to screen in csv format, defaults to false unless --checkonly flag is set

  --apiversion=apiversion
      override the api version used for api requests made by this command

  --json
      format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)
      logging level for this command invocation

EXAMPLE
  $ sfdx crm:profile:fieldpermissions:set
             -u myalias
             --sobjects="Account,MyCustomObject__c"
             --profiles="Standard*"
             --filter="LastModifiedBy.LastName='Doe' AND LastModifiedDate=TODAY"
             --readaccess=true --editaccess=false

See code: src/commands/crm/profile/fieldpermissions/set.ts

sfdx crm:profile:objectpermissions:set

Sets SObject Level Security for a list of profiles.

USAGE
  $ sfdx crm:profile:objectpermissions:set

OPTIONS
  -a, --createaccess=createaccess                 Create SObject permission, defaults to 'true'. Valid values are 'true'
                                                  or 'false'.

  -c, --checkonly                                 Just display details, no updates are made to profiles, defaults to
                                                  false.

  -e, --editaccess=editaccess                     Edit SObject permission, defaults to 'true'. Valid values are 'true'
                                                  or 'false'.

  -m, --modifyallaccess=modifyallaccess           Modify All SObject permission, defaults to 'false'. Valid values are
                                                  'true' or 'false'.

  -o, --sobjects=sobjects                         (required) List of SObjects separated by commas.

  -p, --profiles=profiles                         (required) List of profiles separated by commas. You can also use
                                                  wildcards as part of this parameter to match on profile names (only
                                                  ^,$,* are supported, ^ matches start of the profile name, $ matches
                                                  end of the profile name and * matches one or more characters anywhere
                                                  in a profile name).

  -r, --readaccess=readaccess                     Read SObject permission, defaults to 'true'. Valid values are 'true'
                                                  or 'false'.

  -s, --viewallaccess=viewallaccess               View All SObject permission, defaults to 'true'. Valid values are
                                                  'true' or 'false'.

  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org

  -v, --verbose                                   Output to screen in csv format, defaults to false unless --checkonly
                                                  flag is set

  -x, --deleteaccess=deleteaccess                 Delete SObject permission, defaults to 'false'. Valid values are
                                                  'true' or 'false'.

  --apiversion=apiversion                         override the api version used for api requests made by this command

  --json                                          format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx crm:profile:objectpermissions:set
             -u myalias
             --sobjects="Account,MyCustomObject__c"
             --profiles="Standard*"
             --readaccess=true --createaccess=false --editaccess=true --deleteaccess=false --viewallaccess=true 
  --modifyallaccess=false

See code: src/commands/crm/profile/objectpermissions/set.ts

sfdx crm:profile:recordtypevisibilities:set

Sets Record Type Visibilities for a list of profiles.

USAGE
  $ sfdx crm:profile:recordtypevisibilities:set

OPTIONS
  -c, --checkonly                                 Just display details, no updates are made to profiles, defaults to
                                                  false.

  -p, --profiles=profiles                         (required) List of profiles separated by commas. You can also use
                                                  wildcards as part of this parameter to match on profile names (only
                                                  ^,$,* are supported, ^ matches start of the profile name, $ matches
                                                  end of the profile name and * matches one or more characters anywhere
                                                  in a profile name).

  -r, --recordtypes=recordtypes                   (required) JSON Array of Record Type visibility details. Example:
                                                  [{"name":"CustomObj__c.DevelperName_of_RecordType1", "default":true",
                                                  "visible":true}, {"name":"CustomObj__c.DeveloperName_of_RecordType2",
                                                  "visible":false},...]

  -u, --targetusername=targetusername             username or alias for the target org; overrides default target org

  -v, --verbose                                   Output to screen in csv format, defaults to false unless --checkonly
                                                  flag is set

  --apiversion=apiversion                         override the api version used for api requests made by this command

  --json                                          format output as json

  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLE
  $ sfdx crm:profile:recordtypevisibilities:set
             -u myalias
             --profiles="Standard*"
             --recordtypes='[{"name":"CustomObj__c.CustomRecType1", "default":true, 
  "visible":true},{"name":"CustomObj__c.CustomRecType2", "visible":false}]'

See code: src/commands/crm/profile/recordtypevisibilities/set.ts