The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Recommended

sfDesk, a free desktop app that puts the Salesforce CLI behind buttons (opens in a new tab)

You will learn what sfDesk offers for org connections, querying, Apex, deployments, and org health, and how it keeps credentials and commands safe.

Why read this

It is useful if you want a GUI over the sf CLI.

The author built sfDesk, a desktop app for macOS and Windows that wraps the Salesforce CLI in buttons instead of commands. It is free, open source under Apache 2.0, and released as version 0.1.0. It shows every org the computer is signed in to, grouped by type, and provides a page for everyday jobs such as querying data, running Apex, reading debug logs, running tests, deploying, building packages and checking org health.

The app follows three rules. Every action is a labelled button, with an option to display the underlying sf command. Queries only read, and production orgs ask for confirmation before Apex runs, record edits and deploys. Validation, which changes nothing, does not prompt. Most pages act on the active connection, which is separate from the CLI’s default org.

The feature set covers connection management, Scratch Org creation and pools, a query editor with autocomplete and a Schema view, record editing with a preview of changes, and CSV, Excel or JSON import and export through the Bulk API. Apex and test pages include anonymous Apex, coverage views and log insights. Deploy and Retrieve offers a diff before any change, and Code Analyzer runs several engines. Org Info includes a Security Health Check view and an org comparison.

On security, sfDesk says it stores no passwords or tokens, runs only a fixed set of commands without a shell, and sends no data elsewhere beyond update checks. Exported sign-ins are encrypted with a password you choose. The app is built with Tauri 2, a Rust core and a React and TypeScript interface.

Read the original at dev.to (opens in a new tab)

Worth reading?

Must-read

Running Apex tests in CI without a Scratch Org, with gated deploys (opens in a new tab)

You will see how Apex tests can run on a CI runner against a local runtime, what a gated deploy with a check-only validation looks like, and the trade-offs of keeping the org only for the final deploy.

Why read this

The piece is also a product pitch for renmy, so weigh its benchmark claims accordingly.

  1. Run local runtime gates on the bundle
  2. Check-only validation of the same bytes
  3. Deploy to the target org
The gated deploy sequence renmy deploy follows before any metadata reaches the org

The piece argues that most Salesforce CI pipelines waste time and reliability on provisioning a Scratch Org or shared sandbox just so Apex tests have somewhere to run. Its proposed alternative is renmy runtime, a local Apex runtime that executes Apex, SOQL, DML and Salesforce Flows on the CI runner itself, backed by an embedded PostgreSQL database. The author says this removes the need for a JWT certificate, a Dev Hub allocation or a Scratch Org for the unit-test job, and that tests finish in seconds with JUnit XML and Cobertura coverage output. The runtime is presented as an interpreter that enforces governor limits and platform rules, not a mock framework or a transpiler. The piece includes a GitHub Actions example in which the only secret needed is a license key, and it notes that tests can keep running during a Salesforce incident even though deploys cannot.

The piece also describes a gated deploy command, renmy deploy. It snapshots the source into a content-addressed bundle, runs the local test and coverage gates against those exact bytes, then runs a real check-only validation of the same bytes in the target org, and deploys only after that succeeds. A coverage floor can be set with a minimum-coverage flag. For teams that need an approval step, a release command validates and writes a receipt containing the bundle digest, git revision, org fingerprint, gate results and validation job id. After approval, a deploy step quick-deploys the validated job within Salesforce’s 10-day window, or resends the stored bundle, and rejects changed, expired or wrong-org receipts. The author also covers pinning the Salesforce CLI version and recovering deploys stuck in the org’s Pending queue.

The author is candid that the org still matters for anything a person inspects, for integration tests against real endpoints, and for the final validation and deployment. The main claim to weigh carefully is the vendor’s own benchmark: about 1 minute 46 seconds to deploy and run 837 tests in an org against 2.4 seconds locally, roughly 45 times faster, with all tests passing in both. The method is published by the vendor and has not been independently verified in the piece. Branch coverage is reported locally but not by the org, so the two coverage figures are not directly comparable. The piece also notes that the Team tier, which covers CI runner use, is free during the public beta, with a listed price of $49 per developer per month, and that an individual Free tier exists.

Read the original at dev.to (opens in a new tab)

Worth reading?