
Platform Metadata Retrieve
This pulls Salesforce metadata from an org to your local project using the sf CLI. It handles all the common retrieval patterns: grabbing all remote changes, pulling specific directories or metadata types, working from a package.xml manifest, or retrieving by package name. The workflow is straightforward, just runs sf project retrieve start through the Bash tool with the right flags. One thing to remember is that production orgs don't support source tracking, so you can't use the "retrieve all changes" mode there. You'll need to fall back to explicit metadata types or manifests instead. Good coverage of the gotchas like wildcard quoting and flag conflicts.
- skills.sh installs
- 6.9K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill platform-metadata-retrieve --agent claude-codeInstalls into .claude/skills of the current project.
Files
platform-metadata-retrieve
Retrieves metadata from a Salesforce org to your local project using sf project retrieve start. Supports multiple retrieval modes: all changes, by source directory, by metadata type (with wildcards), by manifest, or by package name.
Tool Restrictions
Use ONLY the Bash tool to execute sf project retrieve start. Do NOT use MCP tools — ignore them completely.
Scope
- In scope: Retrieving metadata via
sf project retrieve startin all supported modes (all changes, source-dir, metadata type, manifest, package name), source and metadata format output - Out of scope: Deploying metadata (use
platform-metadata-deploy), listing metadata types, generating package.xml files, source tracking commands (sf project retrieve preview)
Required Inputs
Infer from the user's request:
- Retrieval mode: all changes | source directory | metadata type | manifest | package name
- Target org: org alias/username (uses default if not specified)
- Output format: source format (default) | metadata format (ZIP)
- Additional options: ignore conflicts, output directory, wait time, API version
Workflow
Sponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Release Management, CLI & Terminal
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 158- Platform Custom Field Generate6.8K
- Platform Docs Get6.8K
- Platform Permission Set Generate6.8K
- Dx Code Analyzer Run6.7K
- Platform Custom Object Generate6.6K
- Automation Flow Generate6.5K
- Experience Lwc Generate6.4K
- Platform Validation Rule Generate6.3K
- Platform Data Manage6.3K
- Dx Org Manage6.2K
- Platform Flexipage Generate6.2K
- Platform Metadata Api Context Get6.2K
- Platform Sharing Rules Generate6.2K
- Design Systems Slds Apply6.1K
- Design Systems Slds Validate6K
- Agentforce Generate6K
- Platform Custom Tab Generate6K
- Dx Code Analyzer Configure5.9K
- Platform Custom Application Generate5.9K
- Platform List View Generate5.9K
- Agentforce Architecture Analyze5.9K
- Dx Org Switch5.8K
- Dx Org Permission Set Assign5.8K
- Platform Custom Lightning Type Generate5.8K