golem init
This command generates a starter golemfile.py in the current project directory.
The generated file is a normal Python project file with inline hints about the usual Golem workflow, including when to run configure, resolve, dependencies, and build.
golem init [--project-dir=<project_dir>] [--force]Options
--project-dir=<project_dir>Directory where
golemfile.pyshould be generatedDefault: Current directory
--forceOverwrite an existing
golemfile.pyor replace an existinggolemfile.json
Notes
Without
--force,golem initrefuses to replace an existinggolemfile.pyorgolemfile.json.With
--force,golem initremoves any existinggolemfile.pyorgolemfile.json.The command creates only the project file. You still need to add your sources, for example
src/main.cpp.A common next step is:
golem configure --variant=debug golem buildIf you later add dependencies with
project.dependency(...), run:golem resolve golem dependencies golem build