Package

Create and manage Salesforce packages

sfp package install

Install unlocked packages to a target org using subscriber package version IDs

USAGE
  $ sfp package install -o <value> -p <value> [--json] [--repository <value>] [-e <value>] [-t <value>]
    [--sfp-server-url <value>] [--skipifinstalled] [--ignoredowngrade] [--dryrun] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for authenticated user. Ignored if --application-token is provided.
                                    Can be set via SFP_SERVER_USER env var.
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -o, --targetorg=<value>           (required) Username or alias of the target org.
  -p, --packages=<value>            (required) Comma-separated list of packages to install. Format:
                                    "name:04tXXXXXXXXXXXXXXX" or "name:04tXXXXXXXXXXXXXXX:installationKey". Example:
                                    "core:04t123,advanced:04t456:MyKey"
  -t, --application-token=<value>   Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
                                    (CLI flags take precedence over env vars).
      --dryrun                      Simulate the installation without actually installing packages
      --ignoredowngrade             Ignore errors if a higher version of the package is already installed (cannot
                                    downgrade)
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --repository=<value>          The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
                                    for Azure DevOps
      --sfp-server-url=<value>      URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
                                    config:set server-url
      --skipifinstalled             Skip installation if the package is already installed in the target org

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Install unlocked packages to a target org using subscriber package version IDs

EXAMPLES
  $ sfp package install -o myorg --packages "core-crm:04t1234567890ABCDE,advanced-features:04t1234567890FGHIJ"

  $ sfp package install -o myorg --packages "core-crm:04t1234567890ABCDE:MyInstallKey123"

  $ sfp package install -o myorg --packages "pkg1:04tXXX,pkg2:04tYYY" --skip-if-installed

See code: src/commands/package/install.ts

sfp package list

List all packages in the workspace with type, domain, and metadata

See code: src/commands/package/list.ts

sfp package list-from-devhub

List all unlocked packages created in the DevHub org

See code: src/commands/package/list-from-devhub.ts

Last updated

Was this helpful?