forcedotcom / dependencies-cli

SFDX plugin for metadata dependencies tooling API
BSD 3-Clause "New" or "Revised" License
106 stars 18 forks source link

oAuth Issue even though I have authenticated to the Sandbox #1

Closed sachinsid closed 4 years ago

sachinsid commented 4 years ago

Hi Andy,

When I try to run the tool, I get an error "Must pass a username and/or OAuth options when creating an AuthInfo instance.", even though I authenticated directly against the sandbox. Also FYI, it looks like the tool is called 'andyinthecloud' for some reason and not dependency per the wiki, so If I need to run a report, I need to use

sfdx andyinthecloud:dependencies:report. instead of

sfdx dependency:dependencies:report

Hope you can help...

hkache commented 4 years ago

Hi - I have just uploaded a new version of the package (version 2.0.0-beta) where the commands properly resolve to sfdx dependency:component:report as documented. Can you please update to that latest version and run your commands again?

To resolve the OAuth issue, try and run the sfdx force:org:list after you authenticated to see if the org is listed there. The plugin works with that list to resolve either by username or alias.

hkache commented 4 years ago

Upgrade to 2.0.1 will resolve this problem. Closing ...