Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @muenzpraeger/sfdx-plugin with all npm packages installed. Try it out:

@muenzpraeger/sfdx-plugin lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@muenzpraeger/sfdx-plugin/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@muenzpraeger/sfdx-plugin v0.4.0

A plugin for the Salesforce CLI built by René Winkelmeyer.

sfdx-plugin

A plugin for the Salesforce CLI built by René Winkelmeyer.

Version Downloads/week License

Installation into the Salesforce CLI

Install the plugin into your Salesforce CLI using this command:

$ sfdx plugins:install @muenzpraeger/sfdx-plugin

You can check a successful installation with sfdx plugins. Updates are applied when executing sfdx plugins:update.

Commands

sfdx mzpr:source:api:set

Upgrades the current project and all metadata to the latest API version

USAGE
  $ sfdx mzpr:source:api:set

OPTIONS
  -a, --apiversion=apiversion                      specify the API version (defaults to API version of your DevHub)
  -h, --help                                       show CLI help
  -v, --targetdevhubusername=targetdevhubusername  username or alias for the dev hub org; overrides default dev hub org
  --json                                           format output as json
  --loglevel=(trace|debug|info|warn|error|fatal)   logging level for this command invocation

EXAMPLES
  $ sfdx mzpr:source:api:set
       Reading content of package directories
       45 files have been set to API version 42.0.

  $ sfdx mzpr:source:api:set -a 41.0
       Reading content of package directories
       45 files have been set to API version 41.0.

sfdx mzpr:source:cleanupaura

Removes all boilerplate Aura related files that have not been modified

USAGE
  $ sfdx mzpr:source:cleanupaura

OPTIONS
  -h, --help                                      show CLI help
  -p, --noprompt                                  no prompt for confirm deletion
  --json                                          format output as json
  --loglevel=(trace|debug|info|warn|error|fatal)  logging level for this command invocation

EXAMPLES
  $ sfdx muenzpraeger:source:cleanupaura
        Make sure that your git commits are up-to-date before you proceed. Do you want to delete boilerplate Aura
  related files that have not been modified? (y/N) y
        Reading content of package directories
        36 non-modified boilerplate Aura files have been deleted in package directory 'force-app'.

  $ sfdx muenzpraeger:source:cleanupaura -p
        Reading content of package directories
        36 non-modified boilerplate Aura files have been deleted in package directory 'force-app'.

sfdx mzpr:swagger:import

Auto-generate Apex classes from Swagger/OpenAPI files.

USAGE
  $ sfdx mzpr:swagger:import

OPTIONS
  -a, --apiversion=apiversion                      specify the API version (defaults to API version of your DevHub)
  -c, --classprefix=classprefix                    specify a class prefix (defaults to "Swag")
  -d, --outputdir=outputdir                        (required) local folder for storing the created files.
  -f, --force                                      overwrites existing files
  -h, --help                                       show CLI help
  -p, --path=path                                  (required) URL or local file path for Swagger definition file.
  -v, --targetdevhubusername=targetdevhubusername  username or alias for the dev hub org; overrides default dev hub org
  --json                                           format output as json
  --loglevel=(trace|debug|info|warn|error|fatal)   logging level for this command invocation

EXAMPLE
  $ sfdx mzpr:swagger:import -d . -p http://petstore.swagger.io/v2/swagger.json
     Apex classes have been generated.
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free