LinuxCommandLibrary

sfdk-package

Create and manage Salesforce DX packages

TLDR

Create a package

$ sfdk package
copy

Create a package without executing the check section in RPM SPEC file
$ sfdk package --no-check
copy

Create and sign a package
$ sfdk package --sign
copy

SYNOPSIS

sfdx package [command]

PARAMETERS

create
    Creates a new package.

delete
    Deletes a package.

install
    Installs a package.

list
    Lists all packages in the Dev Hub.

update
    Updates an existing package.

version:create
    Creates a new package version.

version:delete
    Deletes a package version.

version:list
    Lists package versions.

version:promote
    Promotes a package version.

DESCRIPTION

The `sfdx-package` command is a plugin for the Salesforce CLI (SFDX) that provides a set of tools to manage Salesforce packages. It simplifies the process of creating, updating, deleting, and installing Salesforce packages, including both unlocked packages and second-generation managed packages. It is particularly helpful for automating packaging tasks within CI/CD pipelines or during local development. With this command you can better handle salesforce code during development or deployment.

CAVEATS

Requires a Dev Hub enabled Salesforce org and the Salesforce CLI to be properly configured. Authentication with the Dev Hub is necessary before using most commands. Proper version control of package definitions is crucial for successful development and deployment. Please note that this is a SFDX Plugin, the full SFDX CLI should be available.

PACKAGE TYPES

The `sfdx-package` plugin supports both unlocked packages and second-generation managed packages.
Unlocked Packages: Provide flexibility and agility for teams using source-driven development.
Second-Generation Managed Packages: Allow ISVs to build and distribute applications on the AppExchange with enhanced control and security.

METADATA COVERAGE

While `sfdx-package` supports a broad range of metadata types, it's essential to verify compatibility, especially when working with older or custom components. Consult the Salesforce documentation for the latest details on metadata coverage.

HISTORY

The `sfdx-package` plugin was developed as part of the evolving Salesforce DX (SFDX) development experience. Its purpose is to streamline package development and management for both unlocked packages and second-generation managed packages, in response to needs for more flexibility and control in Salesforce development lifecycles. It represents a significant shift from older packaging approaches, focusing on modularity, version control, and automation.

SEE ALSO

sfdx(1), sfdx-cli(1)

Copied to clipboard