Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

platform-metadata-retrieve

Skill by forcedotcom

Retrieves metadata from a Salesforce org into a local project using the sf project retrieve start command. Built for developers who want to pull Apex classes, custom objects or other metadata.

  • Score 84
  • 1.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install platform-metadata-retrieve

Built from the published package, never by AI.

git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/platform-metadata-retrieve ~/.claude/skills/platform-metadata-retrieve

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install platform-metadata-retrieve in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill runs the Salesforce CLI command sf project retrieve start to bring metadata from an org into a local project. It supports several retrieval modes: all remote changes, a source directory, metadata types with wildcards, a package.xml manifest, or a package name. Output can be in source format (the default) or metadata format as a ZIP.

The skill tells the assistant to use only the Bash tool and to always add the --json flag. It lists rules such as running from a directory with sfdx-project.json, quoting wildcard patterns, and not mixing --manifest with --metadata or --source-dir. It is intended for Salesforce developers who need to retrieve, pull, sync or download metadata. Deploying metadata and generating a package.xml are handled by other skills.

Written from the project's SKILL.md and checked against it.

What it can do

  • Retrieve all changesPulls remote changes into the local project using sf project retrieve start.
  • Retrieve by source directoryRetrieves metadata matching a given source directory path.
  • Retrieve by metadata typeRetrieves named metadata types, with wildcard patterns supported.
  • Retrieve by manifestRetrieves metadata listed in a package.xml manifest file.
  • Retrieve by package nameRetrieves metadata for a named package.
  • Metadata format outputOutputs retrieved metadata as a ZIP in metadata format using --unzip.

What you need

  • Salesforce CLI (sf) version 2.0.0 or higher
  • A Salesforce project with sfdx-project.json at the root
  • An authenticated Salesforce org alias

Try asking

  • Retrieve all Apex classes from my default org into this project.
  • Pull the custom objects matching Invoice* from the sandbox alias.
  • Retrieve metadata using package.xml from the manifest folder.

Good to know

  • Retrieving all changes requires source tracking, so production orgs must use other modes.
  • --ignore-conflicts only applies to scratch and sandbox orgs.
  • The default wait time is 33 minutes.
  • Package retrieval is for reference only and should not be added to source control for development.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/platform-metadata-retrieve/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • examples/error_output.json318 B
  • examples/success_output.json674 B
  • references/cli_flags.md4 KB
  • references/retrieval_modes.md5 KB

Alternatives to platform-metadata-retrieve

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

platform-metadata-retrieve: common questions

Does this skill deploy metadata to an org?

No. The source says deploying metadata is handled by the platform-metadata-deploy skill.

Can it retrieve from a production org?

Yes, but the source says production orgs do not support the retrieve all changes mode, so other modes such as --source-dir, --metadata or --manifest must be used.

Does it use MCP tools?

No. The source says to use only the Bash tool and to ignore MCP tools.

How do I install platform-metadata-retrieve?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is platform-metadata-retrieve free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is platform-metadata-retrieve safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to platform-metadata-retrieve?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

platform-metadata-retrieve Install

Add to stack

Loading.