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

osiecki-sfdx-plugins

v0.2.2

Published

SFDX plugins by Adam Osiecki

Readme

osiecki-sfdx-plugins

A plugin for the Salesforce CLI built by Adam Osiecki

Version CircleCI Appveyor CI Codecov Downloads/week License Greenkeeper badge Known Vulnerabilities

Setup

To install this plugin You need to have Salesforce CLI installed on Your system.

Install as plugin:

$ sfdx plugins:install osiecki-sfdx-plugins

To check if installation was successful You can use command:

$ sfdx plugins

To update plugins You can use:

$ sfdx plugins:update

Install from source:

Clone the repository:

git clone https://github.com/osieckiAdam/osiecki-sfdx-plugins.git

Install using yarn:

yarn install

Link the plugin

sfdx plugins:link

Commands

sfdx oa:apex:log:delete [-c] [-a] [-s <array>] [-n <array>] [-m] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

delete ApexLog entries from Your org

delete ApexLog entries from Your org

USAGE
  $ sfdx oa:apex:log:delete [-c] [-a] [-s <array>] [-n <array>] [-m] [-u <string>] [--apiversion <string>] [--json] 
  [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -a, --async                                                                       do not wait for successful
                                                                                    completion of the job. If ommited
                                                                                    will poll for number of processed
                                                                                    records until complete

  -c, --checkonly                                                                   use this parameter to only check
                                                                                    number of debug logs without
                                                                                    deleting them

  -m, --my                                                                          delete only my logs

  -n, --name=name                                                                   delete only logs created by
                                                                                    specified user names

  -s, --status=status                                                               delete only logs with specified
                                                                                    statuses

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

  --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|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES

  sfdx oa:apex:log:delete
       Number of ApexLog records to be deleted: 100
       Delete job is started. Id of the job: 7501w000002WA2EAAW
       Processed records: 100 / 100
       Job is finished, status of the job is: Completed
       Total processing time was 2154 ms
       All records were deleted sucessfully

  sfdx oa:apex:log:delete -c -u [email protected]
       Number of ApexLog records to be deleted: 10

  sfdx oa:apex:log:delete --async
       Number of ApexLog records to be deleted: 7
       Delete job is started. Id of the job: 7501w000002WEuKAAW
       To poll status of the job, run command 'sfdx force:data:bulk:status -i 7501w000002WEsi'

  sfdx oa:apex:log:delete --json'
       {
         "status": 0,
         "result": {
           "numberOfQueriedLogs": 3,
           "jobID": "7501w000002WnWcAAK"
         }
       }

  sfdx oa:apex:log:delete -s "Internal Salesforce.com Error,success"
       Query: SELECT Id FROM ApexLog WHERE Status IN ('Internal Salesforce.com Error','success') does not return any 
  record

  sfdx oa:apex:log:delete -m
       Query: SELECT Id FROM ApexLog WHERE LogUserId = '0054J000005OInNQAW' does not return any record

  oa:apex:log:delete -c -n [email protected],[email protected]
       Query: SELECT Id FROM ApexLog WHERE LogUser.Username IN ('[email protected]','[email protected]') does not return any 
  record

See code: src/commands/oa/apex/log/delete.ts

sfdx oa:data:soql:sel -f <string> [-w <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

generate query string for all fields from SObject (SEL * FROM SObject)

generate query string for all fields from SObject (SEL * FROM SObject)

USAGE
  $ sfdx oa:data:soql:sel -f <string> [-w <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel 
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -f, --from=from                                                                   (required) SObject to generate query
                                                                                    for

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

  -w, --where=where                                                                 Add WHERE clause to Your query

  --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|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES
  sfdx oa:data:soql:sel -f ApexLog
       Your query was succesfully copied to clipboard:
       SELECT Id, LogUserId, LogLength, LastModifiedDate, Request, Operation, Application, Status, DurationMilliseconds,
       SystemModstamp, StartTime, Location FROM ApexLog
    
  sfdx oa:data:soql:sel -f ApexLog --json
       {
         "status": 0,
         "result": {
           "query": "SELECT Id, LogUserId, LogLength, LastModifiedDate, Request, Operation, Application, Status,
           DurationMilliseconds, SystemModstamp, StartTime, Location FROM ApexLog"
         }
       }
    
  sfdx oa:data:soql:sel -f ApexLog -w "LogLength > 100"
       Your query was succesfully copied to clipboard:
       SELECT Id, LogUserId, LogLength, LastModifiedDate, Request, Operation, Application, Status, DurationMilliseconds,
       SystemModstamp, StartTime, Location FROM ApexLog WHERE Where LogLength > 100

See code: src/commands/oa/data/soql/sel.ts

sfdx oa:apex:log:delete [-c] [-a] [-s <array>] [-n <array>] [-m] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

delete ApexLog entries from Your org

delete ApexLog entries from Your org

USAGE
  $ sfdx oa:apex:log:delete [-c] [-a] [-s <array>] [-n <array>] [-m] [-u <string>] [--apiversion <string>] [--json] 
  [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -a, --async                                                                       do not wait for successful
                                                                                    completion of the job. If ommited
                                                                                    will poll for number of processed
                                                                                    records until complete

  -c, --checkonly                                                                   use this parameter to only check
                                                                                    number of debug logs without
                                                                                    deleting them

  -m, --my                                                                          delete only my logs

  -n, --name=name                                                                   delete only logs created by
                                                                                    specified user names

  -s, --status=status                                                               delete only logs with specified
                                                                                    statuses

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

  --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|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES

  sfdx oa:apex:log:delete
       Number of ApexLog records to be deleted: 100
       Delete job is started. Id of the job: 7501w000002WA2EAAW
       Processed records: 100 / 100
       Job is finished, status of the job is: Completed
       Total processing time was 2154 ms
       All records were deleted sucessfully

  sfdx oa:apex:log:delete -c -u [email protected]
       Number of ApexLog records to be deleted: 10

  sfdx oa:apex:log:delete --async
       Number of ApexLog records to be deleted: 7
       Delete job is started. Id of the job: 7501w000002WEuKAAW
       To poll status of the job, run command 'sfdx force:data:bulk:status -i 7501w000002WEsi'

  sfdx oa:apex:log:delete --json'
       {
         "status": 0,
         "result": {
           "numberOfQueriedLogs": 3,
           "jobID": "7501w000002WnWcAAK"
         }
       }

  sfdx oa:apex:log:delete -s "Internal Salesforce.com Error,success"
       Query: SELECT Id FROM ApexLog WHERE Status IN ('Internal Salesforce.com Error','success') does not return any 
  record

  sfdx oa:apex:log:delete -m
       Query: SELECT Id FROM ApexLog WHERE LogUserId = '0054J000005OInNQAW' does not return any record

  oa:apex:log:delete -c -n [email protected],[email protected]
       Query: SELECT Id FROM ApexLog WHERE LogUser.Username IN ('[email protected]','[email protected]') does not return any 
  record

See code: src/commands/oa/apex/log/delete.ts

sfdx oa:data:soql:sel -f <string> [-w <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

generate query string for all fields from SObject (SEL * FROM SObject)

generate query string for all fields from SObject (SEL * FROM SObject)

USAGE
  $ sfdx oa:data:soql:sel -f <string> [-w <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel 
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -f, --from=from                                                                   (required) SObject to generate query
                                                                                    for

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

  -w, --where=where                                                                 Add WHERE clause to Your query

  --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|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLES
  sfdx oa:data:soql:sel -f ApexLog
       Your query was succesfully copied to clipboard:
       SELECT Id, LogUserId, LogLength, LastModifiedDate, Request, Operation, Application, Status, DurationMilliseconds,
       SystemModstamp, StartTime, Location FROM ApexLog
    
  sfdx oa:data:soql:sel -f ApexLog --json
       {
         "status": 0,
         "result": {
           "query": "SELECT Id, LogUserId, LogLength, LastModifiedDate, Request, Operation, Application, Status,
           DurationMilliseconds, SystemModstamp, StartTime, Location FROM ApexLog"
         }
       }
    
  sfdx oa:data:soql:sel -f ApexLog -w "LogLength > 100"
       Your query was succesfully copied to clipboard:
       SELECT Id, LogUserId, LogLength, LastModifiedDate, Request, Operation, Application, Status, DurationMilliseconds,
       SystemModstamp, StartTime, Location FROM ApexLog WHERE Where LogLength > 100

See code: src/commands/oa/data/soql/sel.ts