sfdx-switch
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

sfdx-switch

SFDX plugin to disable the Salesforce process, flow and ApexTrigger in bulk, and restore the state before invalidation.

Version Known Vulnerabilities Downloads/week License

Install

$ sfdx plugins:install sfdx-switch

Commands

sfdx switch:off [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Disable the state of Salesforce processes, flows and Apex triggers at once.

USAGE
  $ sfdx switch:off [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -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

EXAMPLE
  $ sfdx switch:off --targetusername username@example.com

See code: src/commands/switch/off.ts

sfdx switch:return [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Restores the state of Salesforce processes, flows and Apex triggers at once.

USAGE
  $ sfdx switch:return [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -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

EXAMPLE
  $ sfdx switch:return --targetusername username@example.com

See code: src/commands/switch/return.ts

Note

This plugin can only inactivate Apex Trigger, which is unmanaged as packaged. Please note that ApexTrigger, an external package introduced by AppExchange etc., cannot be inactived.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

Package Sidebar

Install

npm i sfdx-switch

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

19.7 kB

Total Files

16

Last publish

Collaborators

  • shinchit