Cheat Sheet
The 20 keybinds, 15 sf commands, and 10 prompts you'll use every day. One page. Print it. Put it on the wall.
One page. Everything an SE actually types.

Print this
This page prints cleanly on a single side of paper. Useful pinned next to your monitor for the first couple weeks.
Cursor keybinds
Mac shown. On Windows/WSL, swap Cmd for Ctrl.
| Keybind | What it does |
|---|---|
Cmd+L | Open Chat sidebar |
Cmd+K | Inline Edit (highlight code, rewrite in place) |
Cmd+I | Open composer / new chat |
Cmd+Shift+L | New chat (fresh context) |
Cmd+Enter | Send a chat message with all open files as context |
Tab | Accept the next AI suggestion |
Esc | Dismiss the AI suggestion |
Cmd+Shift+P | Command palette (find any command) |
Cmd+P | Quick-open a file by name |
Cmd+Shift+F | Search across the project |
Cmd+B | Toggle the sidebar |
Cmd+J | Toggle the terminal panel |
Cmd+\\ | Split the editor |
Cmd+W | Close the current tab |
Cmd+Shift+T | Reopen the tab you just closed |
F12 | Go to definition |
Shift+F12 | Find all references |
Cmd+. | Open quick fixes (code actions) |
Cmd+Z | Undo (yes, even for agent edits) |
Cmd+Shift+Z | Redo |
Chat context primitives
Type in chat:
| Reference | What it pulls in |
|---|---|
@Files | Pick a specific file |
@Folders | Include an entire folder |
@Code | Reference a specific symbol (class, function) |
@Docs | Pull in external documentation you've indexed |
@Web | Fresh web search results |
@Git | Recent commits, git status, git diff |
@Recent Changes | Files you just edited |
@Linter Errors | All current lint errors |
@Definitions | Jump to related type/symbol definitions |
sf CLI commands
The ones you'll run daily.
# Auth and config
sf org login web --alias demo # authorize an org
sf org list # see all authed orgs
sf config set target-org=demo # default target for this project
sf config set target-org=demo --global # default target globally
# Scratch orgs
sf org create scratch -f config/project-scratch-def.json --alias scratch-demo
sf org delete scratch --target-org scratch-demo --no-prompt
sf org open --target-org demo # open in browser
# Source sync
sf project deploy start # deploy local source to org
sf project deploy start --dry-run # validation only
sf project retrieve start # pull changes from the org
sf project deploy preview # what would deploy?
# Apex
sf apex run --file scripts/apex/hello.apex # run anonymous Apex
sf apex run test --test-level RunLocalTests # run all tests
sf apex tail log # stream debug logs
# Data
sf data query --query "SELECT Id, Name FROM Account LIMIT 5"
sf data import tree --files data/accounts.json
sf data export tree --query "SELECT Id, Name FROM Account"
# Permissions
sf org assign permset --name MyPermset
sf org assign permsetgroup --name MyGroup
# Agentforce
sf agent --help # discover agent commands
sf agent test run --test-name MyAgentTest
sf agent generate authoring-bundle # Agent Script
sf agent publish authoring-bundle # Agent Script publish
# Packages (2GP)
sf package version create --package "MyPackage" --installation-key-bypass --wait 20
sf package version list --package "MyPackage"
sf package version promote --package 04t...Prompts you'll reuse
Copy these, change the specifics, paste into chat.
Summarise an unfamiliar project:
Look at @force-app/main/default/ and summarise what this Salesforce
project does. List the custom objects, the Apex classes by purpose, the
LWCs, and any Agentforce metadata. Highlight anything unusual.Generate Apex with tests:
Write an Apex service class called @CustomerInsightService that takes a
list of Contact IDs and returns a Map<Id, CustomerInsight__c>. Include
bulkification, null checks, and a CustomerInsightServiceTest class with
≥90% coverage. Use the sf-apex skill.Generate an LWC:
Create an LWC called agentSummary that displays a Customer Insight record.
Expose it to the App Page. Use the wire service, not imperative Apex. Use
the sf-lwc skill.Build a permission set:
Generate a permission set called CS_Agent_Object_Access granting Read and
Edit on Case, Read on Contact, and full access on CustomerInsight__c
including all fields. Read the object files in
@force-app/main/default/objects/ to pick up field names. Use the
sf-permissions skill.Scaffold an Agentforce agent:
Use the sf-ai-agentforce skill to scaffold a Customer Service Triage
Agentforce Builder agent with three topics (warranty, billing, shipping).
Each topic should have two actions. Output the force-app metadata only.Generate a test class from a failure:
@FooService.cls failed this test: @FooServiceTest.cls, method
testBulkInsert. Here is the debug log: @latest.log. Fix the service so
the test passes, and rerun the tests.Debug a governor limit:
This Apex threw System.LimitException: Too many SOQL queries: 101. Here's
the log: @latest.log. Identify the offending loop, rewrite the method to
bulkify, and show me the diff.Produce a Mermaid ERD:
Use the sf-diagram-mermaid skill. Read @force-app/main/default/objects/
and produce an ERD showing every custom object and its relationships.Reset a demo org:
Run ./scripts/demo-reset/reset.sh against the cs-demo org. If it fails at
any step, stop and show me the error.Audit permissions:
Use the sf-permissions skill to audit
@force-app/main/default/permissionsets/ and
@force-app/main/default/permissionsetgroups/. Tell me which users can see
the CustomerInsight__c object.Quick lookups
Where does a rule file go?
.cursor/rules/something.mdc (project-scoped), or Settings > Rules (user-scoped global).
Where does MCP config go?
.mcp.json in the project root, or Settings > MCP for user-global servers.
Where do hooks go?
.cursor/hooks.json in the project root.
Where's a skill's file?
Either ~/.claude/skills/<name>/SKILL.md (user scope) or .cursor/skills/<name>/SKILL.md (project scope).
Where's the model picker? Bottom of the chat sidebar, next to the send button.
Where's auto-run? Settings > Agent > Auto-run.
Where's Privacy Mode? Settings > Privacy > Privacy Mode.
Deeper pages
| Want more on... | Go to |
|---|---|
| Keybinds and modes | Cursor Fundamentals |
The sf CLI in depth | Your First Project |
Rules and AGENTS.md | Rules & AGENTS.md |
| MCP setup | MCP Setup |
| The full prompt library | Prompt Library |
| Hooks | Hooks & Automation |
That's it
If it's not on this page, you probably don't need it daily. If you find yourself typing something else every day and it's not here, add it.