The sfdx script makes a devops environment
1. Install the CLI from https://developer.salesforce.com/tools/sfdxcli
sfdx update
sfdx auth:web:login --setdefaultdevhubusername --setalias DevHubYourBrand
sfdx auth web login -d -a DevHubYourBrand
{
"orgName": "PCCW Demo",
"country": "HK",
"language": "En",
"adminEmail": "o.mh.liu@gmail.com",
"username": "test-pccwdemo-xxxx@sample.com",
"edition": "Developer",
"features": ["EnableSetPasswordInApi"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
}
}
}
sfdx org create scratch -a dev1 -y 30 -f config/project-scratch-def.json
sfdx force user password generate -u dev1
sfdx force user password generate --targetusername admin-user --onbehalfof "ci-user,qa-user"
sfdx org list --all
sfdx org display --target-org stage
example result
=== Org Description
KEY VALUE
─────────────── ──────────────────────────────────────────────────────────────────────────────────────────────────────
Access Token 00D0p0000001pbQ!AQoAQO.7QuoqyTpaxn19RYIKvjM0AWzhfTcaC0FxNtOkzlHCA3SseWmcat9wJnVWHfDNtVvYm_NqqT6vv_Bao…
Alias stage
Client Id PlatformCLI
Created By oscar.m.liu@mindful-moose-tip0lh.com
Created Date 2023-02-19T05:47:44.000+0000
Dev Hub Id oscar.m.liu@mindful-moose-tip0lh.com
Edition Developer
Expiration Date 2023-03-21
Id 00D0p0000001pbQEAQ
Instance Url https://drive-momentum-797-dev-ed.scratch.my.salesforce.com
Org Name Scratch Org 1
Password mjvtbhC5tn(vl
Signup Username test-pccwdemo-xxxx@sample.com
Status Active
Username test-pccwdemo-xxxx@sample.com