Skip to content

Instantly share code, notes, and snippets.

@jstvz

jstvz/repro.org Secret

Created July 27, 2022 20:45
Show Gist options
  • Save jstvz/19ced1cb1dd2d0784b6bde471749957d to your computer and use it in GitHub Desktop.
Save jstvz/19ced1cb1dd2d0784b6bde471749957d to your computer and use it in GitHub Desktop.

Repro

Result

git remote show origin
* remote origin
 Fetch URL: https://github.com/trailheadapps/dreamhouse-lwc.git
 Push  URL: https://github.com/trailheadapps/dreamhouse-lwc.git
 HEAD branch: main
 Remote branches:
   ar/device-contacts-example                 tracked
   dependabot/npm_and_yarn/lint-staged-12.5.0 tracked
   main                                       tracked
 Local branch configured for 'git pull':
   main merges with remote main
 Local ref configured for 'git push':
   main pushes to main (up to date)
echo '{
  "FirstName": "Testy",
  "LastName": "McTesterson",
  "Email": "[email protected]",
  "Alias": "permtest",
  "TimeZoneSidKey": "America/Los_Angeles",
  "LocaleSidKey": "en_US",
  "EmailEncodingKey": "UTF-8",
  "LanguageLocaleKey": "en_US",
  "permsets": ["dreamhouse"],
  "generatePassword": true
}' > test_user.json
git status
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	test_user.json

nothing added to commit but untracked files present (use "git add" to track)
sfdx force:org:create  -f config/project-scratch-def.json -w 120 -n --durationdays 1
Successfully created scratch org: 00D1F000000riJUUAY, username: [email protected]
sfdx force:org:list
=== Orgs

     ALIAS              USERNAME                                  ORG ID             CONNECTED STATUS
 ─── ────────────────── ───────────────────────────────────────── ────────────────── ────────────────
 [...]

   ALIAS USERNAME                      ORG ID             EXPIRATION DATE
 ─ ───── ───────────────────────────── ────────────────── ───────────────
         [email protected] 00D1F000000riJUUAY 2022-07-28
sfdx force:user:password:generate -u [email protected]
Successfully set the password "*************" for user [email protected].
You can see the password again by running "sfdx force:user:display -u [email protected]".
sfdx force:org:list
=== Orgs

     ALIAS              USERNAME                                  ORG ID             CONNECTED STATUS
 ─── ────────────────── ───────────────────────────────────────── ────────────────── ────────────────
 [...]

   ALIAS USERNAME                      ORG ID             EXPIRATION DATE
 ─ ───── ───────────────────────────── ────────────────── ───────────────
         [email protected] 00D1F000000riJUUAY 2022-07-28
sfdx force:user:create -a permtest --definitionfile test_user.json -u [email protected]
sfdx force:org:list
=== Orgs

     ALIAS              USERNAME                                  ORG ID             CONNECTED STATUS
 ─── ────────────────── ───────────────────────────────────────── ────────────────── ────────────────
 [...]

No active scratch orgs found. Specify --all to see all scratch orgs
echo $SHELL
sfdx version --verbose --json
/bin/zsh
{
	"cliVersion": "sfdx-cli/7.160.0",
	"architecture": "darwin-x64",
	"nodeVersion": "node-v16.13.1",
	"pluginVersions": [
		"@oclif/plugin-autocomplete 0.3.0 (core)",
		"@oclif/plugin-commands 1.3.0 (core)",
		"@oclif/plugin-help 3.3.1 (core)",
		"@oclif/plugin-not-found 1.2.6 (core)",
		"@oclif/plugin-plugins 1.10.11 (core)",
		"@oclif/plugin-update 1.5.0 (core)",
		"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
		"@oclif/plugin-which 1.0.4 (core)",
		"@salesforce/sfdx-plugin-lwc-test 1.0.0 (core)",
		"@salesforce/sfdx-scanner 2.13.0",
		"alias 2.1.0 (core)",
		"apex 1.1.0 (core)",
		"auth 2.2.2 (core)",
		"community 2.0.0 (core)",
		"config 1.4.14 (core)",
		"custom-metadata 2.0.0 (core)",
		"data 2.0.4 (core)",
		"generator 2.0.2 (core)",
		"info 2.0.1 (core)",
		"limits 2.0.1 (core)",
		"org 2.0.3 (core)",
		"salesforce-alm 54.6.2 (core)",
		"schema 2.1.1 (core)",
		"sfdx-cli 7.160.0 (core)",
		"signups 1.2.0 (core)",
		"source 2.0.7 (core)",
		"telemetry 2.0.0 (core)",
		"templates 55.0.0 (core)",
		"trust 2.0.1 (core)",
		"user 2.1.0 (core)"
	],
	"osVersion": "Darwin 21.5.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment