Use placeholders and adapt to the real Salesforce DX project. Verify exact flags with installed help before running commands that mutate an org or overwrite local source.
Primary command map: ../COMMANDS/SALESFORCE_CLI_COMMAND_MAP.md
sf project deploy start --help
sf project deploy validate --help
sf project deploy report --help
sf project deploy quick --help
sf project retrieve start --help
sf apex run test --help
sf code-analyzer run --helpsf apex run test --target-org <alias> --test-level RunSpecifiedTests --tests MyControllerTest --result-format human --wait 30sf project deploy start --target-org <alias> --dry-run --source-dir force-app/main/default/classes/MyController.cls --source-dir force-app/main/default/classes/MyControllerTest.cls --test-level RunSpecifiedTests --tests MyControllerTestsf project deploy validate --target-org <alias> --source-dir force-app/main/default/classes/MyController.cls --source-dir force-app/main/default/classes/MyControllerTest.cls --test-level RunSpecifiedTests --tests MyControllerTest --wait 30sf project deploy report --target-org <alias> --job-id <validated-job-id> --wait 30sf project deploy quick --target-org <alias> --job-id <validated-job-id> --wait 30sf project deploy start --target-org <alias> --source-dir force-app/main/default/classes/MyController.cls --source-dir force-app/main/default/classes/MyControllerTest.cls --test-level RunSpecifiedTests --tests MyControllerTestsf project retrieve start --target-org <alias> --metadata ApexPage:MyPdfPagesf project retrieve start --target-org <alias> --manifest manifest/package.xmlInspect every retrieved file before committing. Broad retrieves can pull unrelated org state into source.
sf data query --target-org <alias> --use-tooling-api --query "SELECT PercentCovered FROM ApexOrgWideCoverage"sf code-analyzer rules --rule-selector Recommended --workspace . --target force-app/main/default --view table
sf code-analyzer run --rule-selector Recommended --workspace . --target force-app/main/default --view tableUse only after explicit approval and after reading ../TOPICS/deployment/destructive-deployment-safety.md.
sf project deploy start --target-org <alias> --dry-run --manifest manifest/package.xml --post-destructive-changes manifest/destructiveChangesPost.xml --test-level RunSpecifiedTests --tests MyDeletionSafetyTestDo not use wildcard destructive members. Do not combine destructive cleanup with unrelated feature deployment.