cli icon indicating copy to clipboard operation
cli copied to clipboard

Package Version Display Dependencies not possible, if installation key required

Open f-schnabel opened this issue 1 month ago • 3 comments

Summary

When trying to query the dependencies of a package that is protected by an installation key, it throws an error that the installation key should be provided but there is no flag to input the installation key.

sf package version displaydependencies --package 04t... -v ...

Returns

Error (1): Please provide installationkey when querying against SubscriberPackageVersion that is protected by installationkey

Also Trying to insert the installation key will trow the error that this is an unknown flag:

sf package version displaydependencies --package 04t... -v ... -k ...

Returns

Error (2): Nonexistent flag: -k

Steps To Reproduce

See above

Expected result

Displaying the dependencies

Actual result

Throws an error

Additional information

https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_package_commands_unified.htm#cli_reference_package_version_displaydependencies_unified

System Information

zsh, macos

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.108.6",
  "nodeVersion": "node-v24.9.0",
  "osVersion": "Darwin 25.1.0",
  "rootPath": "/opt/homebrew/Cellar/sf/2.108.6/libexec/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.35 (core)",
    "@oclif/plugin-commands 4.1.33 (core)",
    "@oclif/plugin-help 6.2.33 (core)",
    "@oclif/plugin-not-found 3.2.68 (core)",
    "@oclif/plugin-plugins 5.4.47 (core)",
    "@oclif/plugin-search 1.2.31 (core)",
    "@oclif/plugin-update 4.7.7 (core)",
    "@oclif/plugin-version 2.2.33 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.48 (core)",
    "@oclif/plugin-which 3.2.40 (core)",
    "@salesforce/cli 2.108.6 (core)",
    "agent 1.24.13 (core)",
    "apex 3.8.1 (core)",
    "api 1.3.3 (core)",
    "auth 3.9.8 (core)",
    "code-analyzer 5.7.0 (user) published 8 days ago (Tue Dec 02 2025) (latest is 5.7.1)",
    "data 4.0.57 (core)",
    "deploy-retrieve 3.23.3 (core)",
    "info 3.4.88 (core)",
    "limits 3.3.67 (core)",
    "marketplace 1.3.8 (core)",
    "org 5.9.30 (core)",
    "packaging 2.20.5 (core)",
    "schema 3.3.82 (core)",
    "settings 2.4.48 (core)",
    "sobject 1.4.73 (core)",
    "telemetry 3.6.57 (core)",
    "templates 56.3.65 (core)",
    "trust 3.7.113 (core)",
    "user 3.6.38 (core)"
  ]
}

f-schnabel avatar Dec 11 '25 10:12 f-schnabel

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] avatar Dec 11 '25 10:12 github-actions[bot]

Hello @f-schnabel :wave: None of the versions of sf you shared match the latest release.

Shared: 2.108.6 Latest: 2.115.15

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

github-actions[bot] avatar Dec 11 '25 10:12 github-actions[bot]

This issue has been linked to a new work item: W-20525733

git2gus[bot] avatar Dec 11 '25 21:12 git2gus[bot]