restart

Restart an app with its current deployment.

lly restart [SLUG|ID]

Stops and starts the app with the same deployment. To apply new code or changed variables, use redeploy.

lly restart copperfox
# ✓ copperfox: restart done

lly waits up to 45 seconds. If the restart takes longer, lly returns and the command continues.

Exit codes

CodeCause
5Another command is running on the app
7Restart failed

JSON output

{"app", "command", "command_id", "state", "result"}. state is done or running.

On this page