sfdx-hardis
sfdx-hardis copied to clipboard
New command: hardis:package:installfromrepo
- Prompt user for a github repo URL (that contains a sfdx project -> example https://github.com/SalesforceLabs/LightningWebChartJS )
- Clone package repo in a temporary folder (use method createTempDir)
- List packages from package repo sfdx-project.json
- Prompt user to select the package to install locally
- If current folder is a sfdx-project (sfdx.json present)
- Prompt user if he/she wants to install sources locally
- if yes
- Prompt local name for the package (use package folder name by default if it is not "force-app"
- Copy in current folder the package folder from the package repo
- Update current folder sfdx-project.json to add the package
- if yes
- Prompt user if he/she wants to install sources locally
- Prompt user if he/she wants to deploy the package on an org
- If yes and sources are installed locally
- Prompt org (method promptOrgUsernameDefault) where to deploy the package
- force:source:deploy (using current folder if previously copied to local folder, else using temp folder)
- If yes and we just want to install the package using sfdx: call sfdx package install command with id (04t..)
- If yes and sources are installed locally