function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Violeta Grigorova 3Violeta Grigorova 3 

Retrieve Unpackaged Source by Creating a Temporary Unmanaged Package

I am trying to follow this guide:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_retrieve_unman_pack.htm

I am doing as follows:
sfdx force:project:create -n {Project Name}
cd {Project Name}
Open the sandbox org
All Setup
Package Manager
Create a package
In Salesforce DX project, create a folder for the MDAPI retrieve:
mkdir mdapipkg
Retrieve the metadata.
sfdx force:mdapi:retrieve -s -r ./mdapipkg -u <username> -p <package name>
My package name is VisualEnhancements. My username is v.g@test.com.org
sfdx force:mdapi:retrieve -s -r ./mdapipkg -u v.g@test.com.org -p VisualEnhancements

results in

No org configuration found for v.g@test.com.org

Should I create a Dev Hub account for this one? I am simply trying to retrieve metadata from sandbox. The guide doesn't mention connecting to Dev Hub (because it is only 30-day trial) or is this always necessary to connect to? I am trying to wrap my head around this 

Thank you
Raj VakatiRaj Vakati
Refer this two links 


https://rajvakati.com/2018/03/21/salesforce-dx-absolute-beginner-part-5-of-7/


https://rajvakati.com/2018/03/21/salesforce-dx-absolute-beginner-part-4-of-7/

https://rajvakati.com/2018/03/21/salesforce-dx-absolute-beginner-part-6-of-7/