I'm trying to Authorize my salesforce org to VSCODE using session Id as mentioned in the documentation. But it is not working. Can you please let me know what mistake I'm doing here.
sfdx force:config:set instanceUrl=https://na35.salesforce.com(from documentation)
sfdx force:mdapi:deploy --deploydir **md-dir** --targetusername **access-token**
I'm getting the following error : ERROR running force:mdapi:deploy:report: Must pass a username and/or OAuth options when creating an AuthInfo instance.