Local Config

If you have some default values that you prefer to use for every project, you may create a local config file that will provide defaults to the questions asked during installation.

This file will be created during the first time new-wb is ran and it will be saved in your machine’s home folder as: ~/.wb-starter.config.json.

Once it has been created, you may edit it with the following options:

OptionDescription
cpTriggerFor Craft projects, this replaces the path to Craft’s CP.
cmsAdminEmailDefault email address used for initial CMS admin account.
cmsAdminUsernameDefault username used for initial CMS admin account.
cmsAdminPasswordDefault password used for initial CMS admin account.
dbHostHost where databases will be created.
dbUserDatabase user.
dbPortPort used to connect to your location database.
gitUserYour GitHub username.
gitOrgA GitHub organization name, if you plan to create sites for an organization. Leave this blank to create repos in your personal profile.
gitPrivateSet this to true to create private GitHub repos.
npmInstallerThe package manager used to install npm modules. Accepts: npm or yarn
releaseDirPrefixes the release directory when npm run pub is used.

Remove any options you don’t want to create a preset for. You will still be able to overwrite any of these presets when setting up a new project. If you delete this file from your home directory you can re-create it during your next installation.