Skip to content

Salesforce CLI hooks to perform deployment of packages after org creation

License

Notifications You must be signed in to change notification settings

jefersonchaves/sfdx-jeff-hook-plugins

Repository files navigation

sfdx-jeff-hook-plugins

Salesforce CLI hooks to perform deployment of package after org creation

Version Continuous Integration Codecov Downloads/week License

$ npm install -g sfdx-jeff-hook-plugins
$ sfdx COMMAND
running command...
$ sfdx (-v|--version|version)
sfdx-jeff-hook-plugins/0.1.2 darwin-x64 node-v12.19.0
$ sfdx --help [COMMAND]
USAGE
  $ sfdx COMMAND
...

Getting Started

To use, install the Salesforce CLI and run the following commands.

Verify the CLI is installed
  $ sfdx (-v | --version)
Install the plugin
  $ sfdx plugins:install sfdx-jeff-hook-plugins

So, when you run sfdx force:org:create, then it will attempt to install the packages defined on packageAliases. The installation key will be determined trying to use sfdx-installation-key sending the package alias as argument, if found in path. (the goal is to bring convenience but use convention over configuration)

To build the plugin locally, make sure to have yarn installed and run the following commands:

Clone the repository
  $ git clone https://github.com/jefersonchaves/sfdx-jeff-hook-plugins/
Install the dependencies and compile
  $ yarn install
  $ yarn prepack
Link your plugin to the sfdx cli
  $ sfdx plugins:link
To verify
  $ sfdx plugins

About

Salesforce CLI hooks to perform deployment of packages after org creation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published