attach

Stream the log of an app.

lly attach [SLUG|ID] [--build] [--tail <N>]

Streams the build log while the app builds and the app output after the deploy.

lly attach copperfox
lly attach copperfox --tail 100
lly attach copperfox --build > build.log

The log goes to stdout, notes go to stderr. The output can be piped or written to a file. A build log ends when the build is finished. App output streams until Ctrl-C.

Options

OptionDescription
--buildShow the build log, also after the deploy
--tail <N>Start with the last N lines

If a deploy fails, lly attach --build <slug> shows the cause.

JSON output

lly attach prints plain text, also with --json.

See also

On this page