@mayank.shete/sf-validator
v1.0.1
Published
Salesforce CLI plugin to validate metadata dependencies against target orgs before deployment
Maintainers
Readme
@mayank.shete/sf-validator
Salesforce CLI plugin to validate metadata references from a PermissionSet XML file against a target org before deployment.
Install
sf plugins install @mayank.shete/sf-validatorValidate Permission Set XML
Use this command to validate a Permission Set file:
sf validate --file force-app/main/default/permissionsets/MyPermissionSet.permissionset-meta.xml --type permissionset --target-org myOrgAliasRequired flags
--file, -f: Path to the source metadata file.--target-org: Target org username or alias.
Optional flags
--type, -t: Validator type. Default ispermissionset.
Output behavior
- Returns missing metadata references grouped by metadata type.
- Returns warnings and errors if encountered during validation.
- Exits with non-zero status when missing references or errors are found (CI/CD friendly).
Local development
npm install
npm run buildThen link locally for testing:
sf plugins link .