Skip to content

weld init

Initialize weld in the current git repository.

Usage

weld init

Description

Creates the .weld/ directory with default configuration and updates version control:

  • .weld/config.toml - Configuration file
  • Updates .gitignore to exclude the entire .weld/ directory (local-only metadata)

Exit Codes

Code Meaning
0 Success
2 Missing or unauthenticated tool
3 Not a git repository

Examples

Initialize in current project

cd /path/to/your-project
weld init

Verify after initialization

weld init && weld doctor

See Also

  • doctor - Verify your toolchain after initialization
  • Configuration - Customize the generated config