afawcett / githubsfdeploy

GitHub Salesforce Deploy Tool
BSD 3-Clause "New" or "Revised" License
189 stars 104 forks source link

deploy package to scratch org #30

Closed joseph-ortiz closed 6 years ago

joseph-ortiz commented 6 years ago

I would like a way to install a package to scratch org. When logging into the salesforce, i am returned to the githubsfdeploy page and I received the following error. I checked and the org does not have IP restrictions. The user installing the package is a system administrator

Deploy directly from GitHub to Salesforce andyinthecloud Oops, something went wrong... Authentication Failed: OAuth login invalid or expired access token Be sure your Salesforce organization does not have IP restrictions. Logout and try with another user or organization.

afawcett commented 6 years ago

To install the package into a Scratch Org take the package ID from an install URL (see README) and use the Salesforce DX Command Line, https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_install_pkg_cli.htm

afawcett commented 6 years ago

Actually @joseph-ortiz i thought you ment the DLRS package, my bad. The answer above is correct if you ment "managed package" which is kind of installer for Salesforce apps. But... if you just ment code from a GitHub repo check out http://www.wadewegner.com/2017/09/deploy-to-salesforce-dx/