CLI
Check source, run focused tests, execute anonymous Apex, and inspect SOQL/DML behavior from your terminal.
Run, test, and debug Apex locally
Run supported Apex checks, focused tests, SOQL/DML, triggers, and anonymous Apex against local project state. Debug supported paths from VS Code. Check human and AI-generated changes before the org round trip. Salesforce remains the validation gate.
Latest stable release:v0.2.8
No Salesforce org login required for supported local checks.
$ glade check --project . --no-progressRenewalQuoteService.cls:42
Daily local workflow
Check source, run focused tests, execute anonymous Apex, and inspect SOQL/DML behavior from your terminal.
Open Glade Home for local proof, data, debug, and ship actions. Run local tests from Test Explorer and CodeLens.
Give agents a small local contract: run a check, quote the diagnostic, fix the smallest source change, and rerun the same command.
Use JSON, SARIF, JUnit, stable exit codes, affected-test selection, and saved run artifacts in pull request workflows.
Examples from the checked capability map.
Database.insertRuns locallySchema.DescribeSObjectResultRuns with limitsAnswers.findSimilarRequires SalesforceWhat runs locally
Glade lists local behavior in three groups: runs locally, runs with limits, and requires Salesforce.
Local data
Run anonymous Apex, SOQL, DML, triggers, local API routes, and playground examples against local project state. Use SQLite-backed environments when a loop needs persistence.
glade playground --project . --open
glade server --project . --db .glade/refinement-local.sqlite --addr 127.0.0.1:8080
glade db seed --db .glade/refinement-local.sqlite --project . data/file-rows.json
glade org create refinement-localUse glade org when a supported sf command needs a local target. It is not a real scratch org. Live auth, hosted services, deploy and retrieve, and exact production behavior stay with Salesforce.
Extension points
The base runtime stays focused on local Apex workflows. Add plugins only when a project needs capability reports, advisory scans, or custom local checks.
Base Glade workflows do not require plugins. Registry commands are preview until a registry, archive URL, or linked plugin is configured.
glade plugins list
glade plugins install @glade/performance
glade plugins install @glade/orgpackageValidation boundary
Use Salesforce for live auth, hosted service engines, deploy and retrieve, exact Lightning Experience behavior, Streaming, Pub/Sub, GraphQL, and exact production governor accounting.
curl -fsSL https://glade.sh/install.sh | sh
glade doctor
glade check --project .Supported paths run locally. Unsupported platform services fail with named diagnostics. Salesforce remains the validation gate.