feat: add sf package trust link unlink command (W-23970577) - #1273
Open
sshyamala-sfdc wants to merge 3 commits into
Open
feat: add sf package trust link unlink command (W-23970577)#1273sshyamala-sfdc wants to merge 3 commits into
sshyamala-sfdc wants to merge 3 commits into
Conversation
Add the beta `sf package trust link unlink` command that clears the connected authoring org's Public Secure trust link, returning it to the Not Linked state. Delegates to PackageTrustLink.unlink; reports the removed link's verified org and prior status, or that the org is already Not Linked. Hidden/beta consistent with the other trust link commands. Includes messages, JSON schema, command-snapshot entry, and unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… t/packaging-distribution/w-23970577/trust-link-unlink # Conflicts: # command-snapshot.json
Pin the published packaging prerelease that includes PackageTrustLink.unlink so plugin CI resolves the unlink implementation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
btrn11
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & Why
Implements the plugin command for W-23970577 — [SPI] [L][CLI] Implement CLI for Public Secure management (link/unlink): the
unlinkverb.sf package trust link unlinkclears an authoring org's Public Secure (VerifiedDev) trust link, returning it to the Not Linked state — from any current state (Pending, Linked, or Declined). This enables the retry-after-decline flow (unlink → request again). It wrapsPackageTrustLink.unlinkfrom the packaging library.Depends on the packaging-library side, published as prerelease
@salesforce/packaging@5.0.9-spi.0(library PR: forcedotcom/packaging#919).Command
sf package trust link unlink --target-org <authoringOrg>--verified-orgflag — an org holds at most one link, so unlink clears whichever link exists.betacommand (no package.json subtopic entry), consistent withtrust link request.Changes
src/commands/package/trust/link/unlink.ts— new commandmessages/package_trust_link_unlink.md— messagesschemas/package-trust-link-unlink.json— result schemacommand-snapshot.json— new command entrytest/commands/package/packageTrustLinkUnlink.test.ts— 3 unit testspackage.json/yarn.lock— pin@salesforce/packaging@5.0.9-spi.0Testing
snapshot:compare→ No changes detected.schema:compare→ No changes detected.5.0.9-spi.0package (not a local link).