Visualize Package Ancestry Tree Using Salesforce CLI

Package ancestry supports the flexibility of branch versioning so that you can abandon a package version you no longer want to build on. Use the displayancestry CLI command to create visualizations of your package or package version’s ancestry tree. You can view the visualization in Salesforce CLI or use the dotcode parameter to generate output that can be used in graph visualization software.

Where: This change applies to second-generation managed packages.

When: Users need the System Administrator profile or the Create and Update Second-Generation Packages permission.

How: Use sfdx force:package:version:displayancestry to quickly visualize your package ancestry and understand the possible package upgrade paths.

CLI ancestry tree visualization Package version visualization

To generate dotcode output, specify sfdx force:package:version:displayancestry --dotcode.