3

sfdx force:source:pull ERROR running force:source:pull: Must pass a username and/or OAuth options when creating an AuthInfo instance.

before created and opened a new scratch org

1
  • It helped me: sfdx force:source:pull -u <scratch org username/alias> Commented Dec 24, 2019 at 11:19

1 Answer 1

3

The issue is when you create the scratch org you will need to set the default scratch org.

You can set a default username using if you have not set during scratch org creation using below

sfdx force:config:set --defaultusername=<username>

Once you set , you don't need to explicitly indicate in push or pull commands.

You must log in to answer this question.

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