-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateScratchOrg.txt
More file actions
34 lines (23 loc) · 1.39 KB
/
createScratchOrg.txt
File metadata and controls
34 lines (23 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sfdx force:auth:web:login -d -a SS_MS
sfdx force:org:create -f MappingServiceScratchOrgv0.1.json -a SS_MS
----------------------------------------------------------------------------------
Use the link to create a dev (hub) org that can be used to create Scratch Org
https://developer.salesforce.com/promotions/orgs/dx-signup
Authorize Salesforce Org using the below command
#sfdx force:auth:web:login -d -a MS-Scratch-Orgv0-2
sfdx force:auth:web:login --setalias MS-Scratch-Orgv0-2 --instanceurl https://flow-page-3168.cs6.my.salesforce.com/ --setdefaultusername
*Ensure Alias don't contain dot
Create Scratch Org with below command
//sfdx force:org:create -f MappingServiceScratchOrgv0.1.json
sfdx force:org:create -f MS-scratch-def.json -a MS-Scratch-Orgv0-2 --targetdevhubusername=deepaknadeli@gmail.com.ss --setdefaultusername
*Ensure Alias don't contain dot
Login to the new Scratch Org without Password (assuming the new scratch org is default Org)
//sfdx force:org:open
sfdx force:org:open -u test-si862tm4fook@example.com
test-si862tm4fook@example.com
&Y-UL5uC20
View list of Orgs within Workspace
sfdx force:org:list --verbose
sfdx force:mdapi:deploy -d .unpackaged/pre -u "MS-Scratch-Orgv0-2" --ignoreerrors --wait 3000
sfdx force:mdapi:retrieve -r ./retrieve -k ./retrieve/package.xml -u test-si862tm4fook@example.com
Expand-Archive ./retrieve/unpackaged.zip -DestinationPath ./retrieve/package-build -f