Build & Install an Artifact
Now that sfp is installed and connected to your server, let's walk through the core commands.
A. Build an artifact for a package
The build command generates a zipped artifact file for each package defined in your sfdx-project.json. The artifact contains the metadata and source code at the point of build creation.
Authenticate to your DevHub locally if you haven't already:
sfp org login --server --username <devhub@salesforce.com> -a devhub --sfp-server-url <url> --email admin@example.comOpen a terminal within your Salesforce project directory and run:
sfp build -v devhubThe -v flag specifies your DevHub alias, which is required for building packages.
You will see logs with details of your package creation:

A new
artifactsfolder will be generated containing a zipped artifact file for each package. For example:package-name_sfpowerscripts_artifact_1.0.0-1.zip
artifacts folder
B. Install the artifact to a target org
You can install artifacts to any org that is accessible. If the org is registered with your sfp server, you can authenticate through the server:
Or authenticate directly using sf CLI:
Then install:

Navigate to your target org and confirm that the packages are installed with the expected changes.
Last updated
Was this helpful?