Skip to content

createNamedProfile

createNamedProfile(nameRaw, seed): CreateProfileResult

Defined in: core/dist/config/profiles.d.ts:66

Scaffold a new named profile at resolveProfileConfigPath. Validates the name (no traversal), builds the scaffold (buildProfileScaffold), validates it against the GS2-1 schema BEFORE writing (never writes an invalid profile), and refuses to clobber an existing profile unless force. Creates the .gsloth/.gsloth-settings/<name>/ tree as needed so the loader’s profile-discovery convention resolves it afterwards.

string

ProfileScaffoldSeed & object

CreateProfileResult

Error on an invalid name, an invalid scaffold, or an existing file without force.