COE: Salesforce Repo Setup
VS Code / Cursor / Windsurf extension that automates creation and initial setup
of Salesforce client repositories under enzigma/coe.
What it does
- Creates a new private GitLab project under
enzigma/coe
- Scaffolds it with
sfdx-project.json, manifest/package.xml (100 metadata types), .gitignore, and README.md
- Initialises three branches:
main → uat → developer
- Auto-detects each Salesforce org's type (Production / Partial Copy / Developer) via SOQL
- Retrieves full metadata from each org and commits to the correct branch
- Clones the repo locally, checks out
developer, and opens the project in Windsurf
Prerequisites
| Tool |
Purpose |
git |
Repository operations |
sf (SF CLI v2) |
Salesforce metadata retrieval |
node ≥ 18 |
Extension runtime |
| GitLab PAT |
api scope required |
Authenticate your orgs before running:
sf org login web -a acme-prod
sf org login web -a acme-uat
sf org login web -a acme-dev
| |