{"id":18949004,"url":"https://github.com/junjizhi/salesforce-scripts","last_synced_at":"2026-03-27T20:30:19.250Z","repository":{"id":42767264,"uuid":"274480280","full_name":"junjizhi/salesforce-scripts","owner":"junjizhi","description":"Salesforce scratch org automation scripts.","archived":false,"fork":false,"pushed_at":"2022-03-27T01:30:26.000Z","size":23,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T01:40:12.590Z","etag":null,"topics":["salesforce","salesforce-developers","salesforcedx"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junjizhi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-23T18:30:42.000Z","updated_at":"2023-08-31T14:19:46.000Z","dependencies_parsed_at":"2022-09-08T04:20:20.921Z","dependency_job_id":null,"html_url":"https://github.com/junjizhi/salesforce-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junjizhi%2Fsalesforce-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junjizhi%2Fsalesforce-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junjizhi%2Fsalesforce-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junjizhi%2Fsalesforce-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junjizhi","download_url":"https://codeload.github.com/junjizhi/salesforce-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239946914,"owners_count":19723018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["salesforce","salesforce-developers","salesforcedx"],"created_at":"2024-11-08T13:15:24.291Z","updated_at":"2026-03-27T20:30:19.186Z","avatar_url":"https://github.com/junjizhi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Diff two SObjects\n\nCompare each field of the SObjects and show the differences (with the option to print all fields).\n\nUsage:\n\n```\ndiff-sobjects.sh \u003cOpportunity|Contact|Account|...\u003e \u003cid1\u003e \u003cid2\u003e [--show-all]\n```\n\nExample:\n\n```bash\n$ ../salesforce-scripts/diff-sobjects.sh Opportunity opp-id1 opp-id2\nid:                                 opp-id1 \u003c\u003e opp-id2\nname:                               opp name1 \u003c\u003e opp name2\ncreateddate:                        2020-07-03 15:44:17 \u003c\u003e 2020-07-03 15:46:53\nlastmodifieddate:                   2020-07-03 15:44:19 \u003c\u003e 2020-07-03 15:46:53\nsystemmodstamp:                     2020-07-03 15:44:19 \u003c\u003e 2020-07-03 15:46:53\nlastvieweddate:                     2020-07-03 15:47:49 \u003c\u003e 2020-07-03 15:48:01\nlastreferenceddate:                 2020-07-03 15:47:49 \u003c\u003e 2020-07-03 15:48:01\n```\n\n## Auto login a scratch org on a browser\n\nThis script does the same thing as `sfdx force:org:open`, but it is a good basis to build more automation on top.\n\n### Installation\n\n```\nnpm install\n```\n\nIf you need to create many scratch orgs, this script saves you effort to copy/paste the url / username / password to the browser.\n\n### What it does\n\nThe script extracts the username and password from your scratch org and automatically log in on a Chromium browser.\n\nThe script is based on [Puppeteer](https://github.com/puppeteer/puppeteer).\n\n### How to run\n\n```\n$ export SALESFORCE_REPO=/path/to/salesforce-repo\n$ ./login-scratch-org.sh\n```\n\n**Demo**\n![sf-auto-login-demo](https://user-images.githubusercontent.com/2715151/85582315-55e22180-b60b-11ea-859c-0e70a8eefaa2.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunjizhi%2Fsalesforce-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunjizhi%2Fsalesforce-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunjizhi%2Fsalesforce-scripts/lists"}