Setup Salesforce Org
sfp requires Dev Hub enabled on your Salesforce org to build packages and create scratch orgs.
Enable Dev Hub
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 unlocked package, which records the artifacts installed in an org, no longer needs to be installed by hand. sfp server installs it automatically when an environment is added, skipping the install if it is already present.