/logout
Sign out of one or all Salesforce orgs (sf org logout). Confirms before destructive action.
> /plugin marketplace add forcedotcom/sf-skills > /plugin install salesforce-development@salesforce
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/logout
Context preview
What this command does when you run it.
Sign out of one or all Salesforce orgs (sf org logout). Confirms before destructive action.
Command definition
logout.mddescription: Sign out of one or all Salesforce orgs (sf org logout). Confirms before destructive action. allowed-tools: - Bash argument-hint: "[--target-org <alias>] [--all]"
Log out of one or more Salesforce orgs.
Workflow:
1. **Parse arguments** ($ARGUMENTS):
- `--target-org <alias>` → log out of a specific org
- `--all` → log out of every authenticated org
- No arguments → list current orgs and ask which to log out of
2. **If no arguments:** call `sf org list --json`, present the orgs in a numbered list, and ask the user which to log out of.
3. **Confirm before action:** show the alias(es) about to be logged out and require explicit "yes" confirmation. This is destructive and the user will need to re-authenticate to use the org again.
4. **Run the logout:**
sf org logout --target-org <alias> --no-prompt # or sf org logout --all --no-prompt
5. **Report:** confirm which orgs are now logged out. If the project's current `target-org` was logged out, suggest the user pick a new default via `/salesforce-development:set-default <alias>` or authenticate fresh via `/salesforce-development:login`.
Rules:
- ALWAYS confirm before logging out
- NEVER log out without explicit user input (no auto-cleanup)
- If the user logs out of the target-org, their next deploy/data command will fail until they reconfigure
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/sf-skills
Other commands on sf-skills.
- /discovery
Discover installed and available Salesforce capabilities, drill into a domain or skill, or explicitly add one catalog-authorized project skill.
Open command - /login
Authenticate to a new Salesforce org via the browser (sf org login web). Optionally set the org as the project's default target.
Open command - /org
Show just the connected Salesforce org details — alias, edition, API version, instance URL, username.
Open command - /project
Show just the local SFDX project metadata stats — Apex/triggers/LWC/Aura/objects/perm sets/flows counts and git status.
Open command - /reset-source-tracking
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.
Open command - /set-default
Set the project's target-org (the org that all sf commands run against by default). If no org is named, lists the authenticated orgs for the user to pick.
Open command

