//_docs //_setup

sfd

Salesforce CLI. Without the wait.

sfd runs common Salesforce CLI operations through a long-lived local daemon. Each call skips the seconds sf spends loading oclif and its plugins, so a warm query answers in about 0.2 seconds. It is built for coding agents and scripts that make many small org calls in a row. It uses the auth, aliases and API versions of the sf you already have.

// speed

sf data query

3.40 s

sfd query

0.17 s

The same SOQL query against a scratch org, measured on one machine. Your numbers depend on your sf install and plugins. The first call starts the daemon; every call after that is warm.

// commands

Command reference →

// agents

Your agent keeps writing sf. A hook rewrites each supported command to sfd before it runs, and anything it does not recognize runs unchanged. Hooks are available for Claude Code, Codex CLI and Gemini CLI.

$ sfd hook install --agent claude
$ sfd hook check 'sf apex run test -n MyTest -w 10 --json'
→ sfd test -n 'MyTest' -w '10'

// setup

1

Install

npm i -g @syntax-syllogism/sfd

Needs Node 22 or newer and an installed, authenticated sf. sfd has no dependencies of its own.

2

Run a command

sfd query "SELECT Id, Name
  FROM Account LIMIT 5" \
  -o my-org

Without -o, the org resolves the same way as sf.

3

Hook up your agent

sfd hook install --agent claude
sfd discover

Also codex and gemini. Add --project for project scope.