Troubleshooting

no terminal to ask: pass it as a flag (exit code 2)

lly stops with exit code 2 because a choice is open and it cannot ask you.

In a terminal, lly asks when something is open, for example which project you mean. Without a terminal, in a script, a pipeline or an agent, it cannot ask. It then stops and names what is missing.

What you see

no terminal to ask `apps`; pass it as a flag
which project? pass --project or run `lly project link`; you have: shop, blog
which roots? pass --apps ROOT,... or --all; supported: apps/web, services/api

lly exits with code 2.

Fix it

Give the answer as a flag. The message names the flag.

MessageWhat to pass
which project?--project shop, or run lly project link shop once so this directory remembers the project
which app?The slug of the app after the command, for example lly redeploy copperfox
which roots?--apps apps/web,services/api for some apps, or --all for every supported one
which repository?The repository after the command, for example lly deploy acme/shop
no terminal to ask `…` The flag with the name in the message

To accept every default without being asked, add -y:

lly deploy --project shop --all -y

Values that do not change between runs can also go into a lily.toml in the repository.

If it is still not working

Send a report through Feedback & Reports in the console sidebar. Include the full message, the project and app name, and the time it happened.

On this page