0

The sfdx-project.json contains a list of packages on which your packages depends, and there are scripts available to perform installation of dependencies such as the one available here:

However, while the first script requires that your code is already released as a package (and it will use a SOQL query to determine the dependency of your package) the second script requires you to specify the packageID you depend on as an environment variable.

Since those packages ids are specified in your sfdx-project.json, isn't there an sfdx command to install those packages, providing a list of installation keys?

1
  • Include the installedpackages meta and push ? Or use the mdapi commands?
    – glls
    Commented May 15, 2019 at 12:48

1 Answer 1

3

We've build a custom sfdx plugin that does just that. It parses your sfdx-project.json and install all the dependencies listed.

Just run the following:

sfdx texei:package:dependencies:install -u MyScratchOrg -k "1:MyPackage1Key 2: 3:MyPackage3Key"

and all dependencies will be installed, using the provided Installation Keys.

You can install the plugin running sfdx plugins:install texei-sfdx-plugin

I also wrote a blog post about this, you can have a look here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .