Skip to content

A generator needs a value

error: generator component needs a value for package
hint: Give it with --set package=<value>, or run axle generate in a terminal to be asked for it.

axle generate asks for the values a generator needs only in a terminal. Run from a script, in CI or by an agent, it can’t ask, so every variable without a default has to be given. The built-in package generator also needs a folder when the workspace lists none, such as packages/*, to put the package in.

Give the value with --set <variable>=<value>, or the name variable as the argument after the generator’s name, such as axle generate component Button. For the package generator, give the folder with --folder.