Skip to content
forcedotcom avatar

Platform Metadata Retrieve

Retrieves Salesforce org metadata locally through sf project retrieve start in five selectable modes and formats.

CCM score
71 of 100
skills.sh installs
7.2K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers retrieval by all remote changes, source directory, metadata type with wildcards, manifest (package.xml), or package name
  • Supports source format by default and metadata format (ZIP) output via --target-metadata-dir and --unzip
  • Enforces a rule that wildcard patterns are quoted and that --manifest cannot be mixed with --metadata or --source-dir
  • Designed for pulling Apex classes, custom objects, and org changes, with deploy and package.xml generation handled by other skills

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-metadata-retrieve -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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 start in 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

Details

Repository
github.com/forcedotcom/sf-skills
Categories
DevOps & Cloud, Backend & APIs
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 78

Similar to Platform Metadata Retrieve

More DevOps & Cloud