Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: hardis:package:installfromrepo #379

Open
nvuillam opened this issue Jun 2, 2023 · 0 comments
Open

New command: hardis:package:installfromrepo #379

nvuillam opened this issue Jun 2, 2023 · 0 comments

Comments

@nvuillam
Copy link
Member

nvuillam commented Jun 2, 2023

  • 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
  • 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..)
@nvuillam nvuillam changed the title New command: hardis:package:installfromremote New command: hardis:package:installfromrepo Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant