To fully leverage the capabilities of sfp, a few addition steps need to be configured in your Salesforce Orgs. Please follow the following steps.
To enable modular package development, the following configurations need to be turned on in order to create Scratch Orgs and Unlock Packages.
Enable Dev Hub in your Salesforce org so you can create and manage scratch orgs and second-generation packages. Scratch orgs are disposable Salesforce orgs to support development and testing.
Navigate to the Setup menu
Go to Development > Dev Hub
Toggle the button to on for Enable Dev Hub
Enable Unlocked Packages and Second-Generation Managed Packages
The sfpowerscripts-artifact package is a lightweight unlocked package consisting of a custom setting SfpowerscriptsArtifact2__c that is used to keep a record of the artifacts that have been installed in the org. This enables package installation, using sfp, to be skipped if the same artifact version already exists in the target org.
Once the command completes, confirm the unlocked package has been installed.
Navigate to the Setup menu
Go to Apps > Packaging > Installed Packages
Confirm the package sfpowerscripts-artifact is listed in the "Installed Packages"
Ensure that you install sfpowerscripts artifact unlocked package in all your target orgs that you intend to deploy using sfp.
If refreshing from Production with sfpowerscripts-artifact already installed, you do not need to install again to your sandboxes.