HubDocs

CLI reference / hub app <name>

hub app <name> logs

Follow build and runtime logs.

Show recent output and follow new activity: a build while it runs, then the running app.

While a deploy builds, the logs show the build as it happens, then the output of the app once the new release runs. A deploy that starts later shows up the same way. Lines about the release (building, running, failed) go to stderr, so redirecting stdout keeps the log alone. Press Ctrl-C to stop.

Usage

hub app <name> logs [options]

Arguments

ArgumentDescription
<name>The app, or app/instance for an instance other than prod, such as my-app/staging.

Options

OptionDescription
--no-followPrint recent output and exit.
--tail <n>Recent lines of the running app to start with. Default: 200.
--service <name>Service to show, default the public service.
--buildShow only the build log of the newest release, following it while it builds.
--release <n>With --build, the release whose build log to show.

Examples

# Follow the build, then the running app
hub app my-app logs

# Print recent output and exit
hub app my-app logs --no-follow

# Follow the db service of a compose app
hub app my-app logs --service db

# Print the build log of release 3
hub app my-app logs --build --release 3

On this page