init_cmd
init_cmd
¶
Project initialization command for Marianne CLI.
Implements mzt init — scaffolds a new Marianne project with a starter
score and .marianne/ directory. This is the first-run experience for
new users.
The generated score is a practical template with comments explaining every field. Users edit it with their task, then run it.
Functions¶
init
¶
init(score_name=Argument(None, help="Score name (e.g. 'my-project'). Same as --name."), path=Option('.', '--path', '-p', help='Directory to initialize (default: current directory)'), name=Option('my-score', '--name', '-n', help='Name for the starter score'), force=Option(False, '--force', '-f', help='Overwrite existing files'), json_output=Option(False, '--json', '-j', help='Output result as JSON'))
Scaffold a new Marianne project with a starter score.
Creates a starter score YAML and .marianne/ project directory. Edit the score with your task, then run it with the conductor.
Examples:
mzt init mzt init my-project mzt init --path ./my-project mzt init --name data-pipeline mzt init --force mzt init --json
Source code in src/marianne/cli/commands/init_cmd.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |