Operations

Two things you'll do once your app is live: read its logs, and roll it back when a deploy goes sideways.

Tailing logs

From your app's directory, follow the stream:

Terminal

$ cd ~/projects/my-app && leash logs -f

The app name is read from .leash/config.json in the cwd, so you don't pass it explicitly. Pass <app> to target a different app, or drop -f for a one-shot fetch (default 200 lines, override with --limit).

Platform noise — Cloud Run startup probes, scheduler chatter — is filtered out. You only see your app's stdout/stderr. Full flag reference on the commands page.

Rolling back

Requires Growth plan or above.

From your app's directory:

Terminal

$ leash rollback

The previous revision (N-1) is restored to 100% traffic. Add --yes to skip the confirmation prompt for CI or agentic flows.

Revision retention

Leash retains the last 10 deployed revisions per app. Growth and above can roll back to any of them; Starter customers see an upgrade prompt.