discover
Show ranked what's-next nudges across the six-stage journey, run on-demand org feature…
Reset source tracking for the target org — tells the CLI to forget all tracked changes so the next push/pull treats the full org as new state. Destructive on shared sandboxes. Requires explicit confirmation before executing.
$ npx -y skills add forcedotcom/sf-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/reset-source-trackingContext preview
What this command does when you run it.
Reset source tracking for the target org — tells the CLI to forget all tracked changes so the next push/pull treats the full org as new state. Destructive on shared sandboxes. Requires explicit confirmation before executing.
description: Reset source tracking for the target org — tells the CLI to forget all tracked changes so the next push/pull treats the full org as new state. Destructive on shared sandboxes. Requires explicit confirmation before executing. allowed-tools: - Bash argument-hint: "[--target-org <alias>]"
**WARNING — Destructive operation.** Resetting source tracking tells the SF CLI to forget every tracked change between your local project and the org. After reset:
Only proceed if you are on a personal scratch org or developer sandbox that you own.
1. **Resolve the target org.** Parse `$ARGUMENTS` for `--target-org <alias>`. If not supplied, find the project's default:
sf config get target-org --json
Extract the `value` field. If no default is set, ask the user: "Which org alias should source tracking be reset for?"
2. **Confirm the target.** Display the resolved alias clearly, e.g.: > Target org: **`myDevSandbox`** > Resetting source tracking is destructive on shared sandboxes. Type **`yes, reset source tracking for myDevSandbox`** to continue, or anything else to cancel.
Wait for the user's reply. If the response does not match `yes, reset source tracking for <alias>` (case-insensitive), print "Cancelled — no changes made." and stop.
3. **Execute the reset:**
sf project reset tracking --target-org <alias> --json
Parse the JSON result. On success the `status` field is `0` and `result` is an empty object `{}`.
4. **Report outcome.** On success, print: > Source tracking reset for **`<alias>`**. The CLI has cleared its local tracking state.
On failure (non-zero status or an `error` key in the JSON), surface the error message verbatim so the user can diagnose.
5. **Post-reset guidance.** Recommend previewing the full diff before deploying: > Run `sf project deploy preview --target-org <alias> --json` to review everything that will be pushed to the org before you deploy.
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/afv-library
Show ranked what's-next nudges across the six-stage journey, run on-demand org feature…
Record a quick 1-5 satisfaction rating as local usage telemetry. Manual-only — never…
Authenticate to a new Salesforce org via the browser (sf org login web). Optionally set the…
Sign out of one or all Salesforce orgs (sf org logout). Confirms before destructive action.
Show just the connected Salesforce org details — alias, edition, API version, instance URL,…
Confirm and install exactly one uninstalled plugin-catalog entry, or record an explicit…