Loading...
Loading...
Validate Salesforce metadata before deploying. TRIGGER when the user asks to validate a deploy, do a dry-run, check before deploying, or targets a Production org for any deploy operation. Routes prod targets to `sf project deploy validate` (returns a 10-day quick-deploy job ID) and sandbox/scratch targets to `sf project deploy start --dry-run`. DO NOT TRIGGER for actual deploys (use platform-metadata-deploy) or destructive changes (use platform-destructive-deploy).
npx skill4agent add forcedotcom/sf-skills platform-deploy-validateplatform-quick-deploysf project deploy validatesf project deploy start --dry-runproduction|sandbox|scratch|trial|devhub|unknownsf org display --target-org <alias> --json | "${CLAUDE_PLUGIN_ROOT}/scripts/sf-deploy-gate" classifyproductionsf project deploy start --dry-run --target-org <alias> --json [scope flags]--source-dir <path>--metadata <Type:Name>--manifest manifest/package.xml--test-level--test-level RunLocalTestssf project deploy validate --target-org <alias> --json [scope flags] --test-level RunLocalTestsRunLocalTestsRunSpecifiedTests --tests <ClassName>...result.idplatform-quick-deploymkdir -p .sfdx
echo '{"jobId":"<id>","createdAt":"<iso8601>","targetOrg":"<alias>","testLevel":"RunLocalTests"}' > .sfdx/last-validation.jsonplatform-quick-deployresult.details.componentFailuresresult.details.runTestResult.failures--jsonsf project deploy start--ignore-errors--ignore-warningsplatform-quick-deploy.sfdx/last-validation.jsonplatform-quick-deployplatform-metadata-deploy