osiecki-sfdx-plugins
SFDX plugins by Adam Osiecki
Last updated 5 months ago by osieckiadam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install osiecki-sfdx-plugins 
SYNC missed versions from official npm registry.

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] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

delete ApexLog entries from Your org

USAGE
  $ sfdx oa:apex:log:delete [-c] [-a] [-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

  -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 username@your.org
       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"
         }
       }

See code: lib\commands\oa\apex\log\delete.js

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)

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: lib\commands\oa\data\soql\sel.js

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

delete ApexLog entries from Your org

USAGE
  $ sfdx oa:apex:log:delete [-c] [-a] [-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

  -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 username@your.org
       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"
         }
       }

See code: lib\commands\oa\apex\log\delete.js

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 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: lib\commands\oa\data\soql\sel.js

Current Tags

  • 0.2.1                                ...           latest (5 months ago)

6 Versions

  • 0.2.1                                ...           5 months ago
  • 0.2.0                                ...           5 months ago
  • 0.1.3                                ...           5 months ago
  • 0.1.2                                ...           5 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |