Out Plane
deploy

deploy logs

Show the build output of one deployment.

read onlyrepeatableruns until stopped

The build output of one deployment: the image build and whatever your own build wrote along the way. It is the first place to look when a deployment failed.

This is the build, not the application. What a running application prints is outplane logs.

Usage

outplane deploy logs <DEPLOYMENT> [flags]

Arguments

ArgumentTypeDescription
DEPLOYMENTstringDeployment id, as reported by outplane deploy create. Required.

Flags

FlagTypeDescription
-f, --followboolKeep printing until the build finishes.
--timeoutdurationHow long --follow waits before giving up. Defaults to 20m.

The global flags apply as well.

Examples

Read a finished build

outplane deploy logs 4821

Watch a build that is still running

outplane deploy logs 4821 --follow

Search a finished build's output

outplane deploy logs 4821 -o text

What to Know

  • Output is the build text, written to stdout as it arrives. It is not JSON, and --json does not change that: there is no record structure to report.
  • Build output lives with the build machine and is removed after it is cleaned up, so an old deployment may have none left. That is reported, not treated as an empty build.
  • A deployment of an already-built image never had a build, so it has no output.
  • Without --follow this returns whatever exists right now, which for a running build is a partial log.
  • This is the build. outplane logs is the running application.

Errors

Beyond 0 for success, this command exits with:

ExitKindMeaning
2usageInvalid arguments, unknown flag, or client-side validation failure.
3authNot authenticated, token revoked or expired, or forbidden for this team.
5not_foundThe named resource does not exist, or is not visible to this credential.
8upstreamThe Out Plane API returned a server error.
124timeoutA client-side deadline expired. The server operation may still be running.

The code on the error object is one of deploy.no_build, deploy.logs_gone, app.not_found. Branch on that, or on the exit status. The message is prose and changes.

On this page