Skip to content

Command reference

This page shows how we find the sfe command we need, and what its words and options mean. sfe explains itself, so we never have to remember a command: sfe help lists them all, sfe cheat shows the ones we use most, and sfe help <group> lists the commands of one system. The page is a walk-through first, and then a set of tables we can come back to. Everything we run here only reads.

Video, about three minutes, with narration and captions.

Before you start

  • sfe is installed. sfe version should print a version.
  • We have a terminal open. We do not need to sign in to anything for this page.

Steps

1. List every command

sfe help

The answer is longer than the window, so the terminal scrolls. The top comes first:

The top of sfe help: the usage line, start here, and the first systems

  • The usage line shows two forms: sfe <command> [options], and sfe <value>. Angle brackets mean a value we fill in. Square brackets mean it is optional.
  • START HERE lists the commands we use first: the guided setup, the doctor, the status, the lane switch, the investigation, the teaching pages and the cheat sheet.
  • SYSTEMS lists one short word for each tool. Each word is a group of commands. sfe help <name> lists the commands of that group.

If we scroll down, the rest of the systems are next:

The systems list, from sf to system

At the bottom come the shortcuts, the options and the exit codes:

The shortcuts, the options and the exit codes at the end of sfe help

2. Show the commands we use most

sfe cheat

The cheat sheet, grouped by what we are trying to do

sfe cheat fits on one screen and groups the commands by what we are trying to do: a value and no idea what it is, something is broken, where is my change, look at Salesforce, show someone with screenshots, and look after sfe. Each line is a real command that we can copy.

3. List the commands of one system

A group is the short word in front of a command, such as jira, sf, aws or dt. To list one group's commands, we use sfe help and the group's name.

sfe help jira

The commands of the jira group

Each line is a command and what it does. Commands such as sfe jira comment say Asks first: write access to the project. They would change something, so sfe asks a person for a yes before it runs them. The commands that only read run at once.

4. Read the help of one command

For one command we add the command's name after the group's.

sfe help jira get

The help of sfe jira get

The help shows the arguments (what we must give), the options (what we may add), examples that we can copy, and a safety label at the end. Here the label says read-only, and that an agent may call the command too. The same help is also available as sfe jira get --help, or with -h.

5. Add an option

Options go after the command, and they work on every command. We try them on sfe dt contexts, which lists the Dynatrace contexts and only reads. A context is an environment plus a saved login.

sfe dt contexts

A command with its narration: what, why, the request, and the safety label

The lines above the table are the narration. They say what sfe does, why, and the exact request it sends, and the label at the end says it is read-only and how long it took.

-q leaves out the narration and keeps only the result:

sfe dt contexts -q

With -q only the result stays

-j gives machine-readable JSON, which is what scripts and agents read. Here we add -q so the narration does not mix in, and head -n 14 keeps only the first 14 lines, so that they fit on the screen.

sfe dt contexts -j -q | head -n 14

With -j the answer is JSON

The tables

The options

These work on every command.

Option What it does
-e, --env <name> Picks the environment for this one command. The names are prod, qafull, devfull, nonprod, sit, stage and dev, and a lane (dev, qa, stage, prod) works for every system
-j, --json Machine-readable output. The narration moves to the error stream
-q, --quiet No narration, only the result
--plain No colours, boxes or spinners
-h, --help Help for a command, for example sfe sf record --help

An environment is one copy of a system. Production is the live copy, and it is the default. sfe env lists every environment and marks the one in use. sfe use <lane> switches every system at once and keeps the choice for later commands, so we use -e when we mean one command only.

The shortcuts

A bare value is looked up for us. sfe works out what it is from its shape, says which command it chose and why, and runs it.

We type sfe looks up
sfe MI0007755 a ServiceNow ticket: what was reported, its state and its owner
sfe 006S600000ff1obIAA a Salesforce record, found by its Id prefix
sfe ENG27-5830 a Jira ticket, and where its change is in the Copado pipeline
sfe US-0030800 a Copado user story, with its commits
sfe <Confluence page address> a wiki page as plain text
sfe a.b@wgu.edu the person behind an email, in Salesforce

The values in the table are examples from sfe's own help. Look into a ticket or incident walks through the Jira key.

Exit codes

Code Meaning
0 ok
1 error
2 usage or configuration
3 refused by the read-only policy
4 login needed

When something is wrong says what to do for each.

The groups

This is the list that sfe help prints under SYSTEMS. sfe help <name> lists the commands of one group.

Group What it covers
sf Salesforce: records, history, Apex, flows, feature switches and limits of the SRM orgs
copado Copado: where a change is on its way from DevFull to Production
dt Dynatrace: logs, failed requests, traces and problems
gh GitHub: pull requests, commits, code search and the WGU repositories
aws AWS: identity, CloudWatch logs, Lambdas, secret names
orc ORC database: read-only SQL on the student app database
snow ServiceNow: incidents, major incidents, requests and their notes
jira Jira: tickets, comments and searches
confluence Confluence: search the wiki and read a page as text
deploy Deployments: service builds and how far they got. sfe where <ticket> joins Copado, pull requests and builds
teams Teams: our recent chats and their messages, straight from Microsoft Graph
mail Mail: Outlook folders, messages and conversations. Reading leaves them unread
calendar Calendar: the events in a window of time, and one event with who was invited
files Files: our OneDrive and files shared with us: list, search, show, download
sites Sites: SharePoint sites, their document libraries, the rows of a list, a page as text
meetings Meetings: which Teams meetings left a transcript or recording, and the transcript
browser Browser: walkthroughs with screenshots, memorised routes, recorded recipes
agent Agents: wire sfe into Kiro, Claude Code, Codex, Cursor and Gemini CLI
write Writes: record a change for a person to apply with sfe-apply
pack Pack: the team's names and environments this install runs on
seal Seal: a signature on what a person decided for agents, by a touch or a passphrase
init Setup: set up a team's pack one step at a time
docs Team docs: where the team keeps its docs, read once and kept here
configure MCP servers: bring in any tool's MCP server
mcp MCP versions: the version of each MCP server, the newest, and a checked update
config Settings: the few personal settings an agent may change
system Systems: which systems sfe knows, which are on, and a check of each

Commands by task

Task Commands
Get started sfe start, sfe doctor, sfe status, sfe cheat, sfe explain, sfe tour
Look into an issue sfe investigate, sfe search, sfe case, sfe explain, sfe recall
Find where a change is sfe where <Jira key>, sfe copado where <key>
Switch environment sfe use <lane>, sfe env, and -e on any command
Check and read back sfe doctor, sfe status, sfe audit, sfe trace
Keep sfe up to date sfe update, sfe mcp versions, sfe mcp check, sfe mcp update. See Updating sfe
Connect an agent sfe agent list, sfe agent install
Record a change for a person to apply sfe write status, sfe write plan, sfe-apply. See How changes work

The safety labels

The last line of a command's help says what kind of command it is.

Label What it means
read-only It reads, and it changes no system
writes files on this machine only; never changes a WGU system It changes files on our Mac, such as a saved sign-in or an update. A person types it. It never changes a WGU system
Asks first: write access to ... It would change a WGU system. It runs only when write access is open for that system, and only after a person says yes on the screen
available to agents as the MCP tool ... A coding agent may call it through the sfe tools

What we should see

  • sfe help lists the groups, the shortcuts, the options and the exit codes.
  • sfe help <group> lists that group's commands, and sfe help <group> <command> shows one command's help with its safety label.
  • -q removes the narration, and -j prints JSON.

Troubleshooting

What we see Likely cause What to do
unknown command, exit code 2 A typing mistake, or a command that does not exist Run sfe help, or sfe cheat. The hint line says the same
The help is cut off at the top The answer is longer than the window Scroll up, or make the window taller. Typing sfe help and then the pipe symbol and less shows it a page at a time
We do not know which group a command is in We only know what we want to do sfe cheat groups the commands by task. sfe search "<words>" looks in every system at once
A command says Asks first or refused by the read-only policy, exit code 3 It would change something and write access is closed Nothing to fix. See How changes work
A command says login needed, exit code 4 The sign-in for that system is missing Run sfe doctor <system>. See Sign-ins

Next


Last reviewed: 2026-12-01