Skip to content

feat: add --installation-key flag to package version displaydependencies @W-20525733@#1227

Merged
soridalac merged 6 commits into
mainfrom
wr/installKeyDisplayDeps
Jun 30, 2026
Merged

feat: add --installation-key flag to package version displaydependencies @W-20525733@#1227
soridalac merged 6 commits into
mainfrom
wr/installKeyDisplayDeps

Conversation

@WillieRuemmele

@WillieRuemmele WillieRuemmele commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes forcedotcom/cli#3469

Work Item

@W-20525733@: Package Version Display Dependencies not possible, if installation key required

Proof of Work

  • Tests: 115 passing (no regressions)
  • Lint: clean (on changed file; repo-wide header/header issue is pre-existing)
  • Type check: clean
  • Snapshot: updated and passing

Test plan

  • Run sf package version displaydependencies -p 04t<key-protected> -k <key> -v <hub> — should display the dependency graph
  • Run sf package version displaydependencies -p 04t<non-protected> (no key) — should still work as before
  • Run sf package version displaydependencies -p 08c... — unaffected path, should work as before

Proof

../../oss/plugin-packaging/bin/run.js  package version displaydependencies --package 04tKa000002wLaqIAE --installation-key testKey123
strict digraph G {
         node_04tKa000002wLaqIAE [label="KeyProtectedTestPkg@0.1.0.1"]
         node_04tKa000002GlS0IAK [label="dancingbears-8e43a10e7d783c95@1.0.0.1"]
         node_04tKa000002wLaqIAE -> node_04tKa000002GlS0IAK
}

…ies @W-20525733@

Allow users to provide an installation key when querying dependencies of
key-protected subscriber package versions.
@WillieRuemmele WillieRuemmele requested a review from a team as a code owner June 22, 2026 22:35
Verify installation key is passed through to getDependencyGraph,
edge-direction is respected, and output goes to stdout vs JSON result.
@soridalac

Copy link
Copy Markdown
Contributor

QA notes:
Using dreamhouse-lwc with scratch org:

✅ (Protected 04t + key): Shows dependency graph, use -k / --installation-key
Screenshot 2026-06-30 at 9 52 15 AM
✅ (Protected 04t, no key): throw an error Error (1): Please provide installationkey when querying against SubscriberPackageVersion that is protected by installationkey
✅ (Non-protected 04t): Shows dependency graph
✅ (Pkg 08c): Shows dependency graph

@soridalac soridalac merged commit a58f885 into main Jun 30, 2026
12 checks passed
@soridalac soridalac deleted the wr/installKeyDisplayDeps branch June 30, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package Version Display Dependencies not possible, if installation key required

2 participants