# A generator needs a value

What "generator needs a value" means and how to fix it.

```text
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.
```

## Why it happens

[`axle generate`](https://axlers.dev/docs/reference/generate.md) 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.

## How to fix it

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`.
