To update the script class cache:
godot --headless --quit project.godotRun GDScript:
# Or just -s instead of --script
godot --headless --quit --script gddemo/main.gdOr for a SceneTree with internal quit:
godot --headless -s gddemo/main.gdRun Python with:
python -m pydemo