logs
view deployment logs (runtime, build, or deploy)
📜 View a deployment's logs.
Three kinds, via --kind: • runtime — your application's stdout/stderr (the default) • build — the build output for a deploy version, or one build (--build) • deploy — rollout events (provisioning, scaling, image pull, live, …)
By default it prints the most recent lines and exits. Use --follow (-f) to stream live — runtime logs only. --tail sets how many recent lines to fetch, --since limits by age (e.g. 1h, 30m), and --timestamps prefixes each line.
--search (-q) filters to lines matching a free-text term (case-insensitive). For fetched logs the search runs server-side; with --follow it filters the live tail.
--build <build-id> prints that build's output (ids from
csph deployment builds list). A finished build is replayed in full; a
running one is followed until it ends. --tail and --since don't apply to it.
Logs are sanitized at the server, so they never expose internal infrastructure detail.
Usage​
csph deployments logs <deployment-id> [flags]
Options​
Command Specific​
Inherited​
Examples​
# last 200 runtime lines
> csph deployment logs <deployment-id>
# stream runtime logs live (Ctrl-C to stop)
> csph deployment logs <deployment-id> --follow
# last hour of runtime logs, with timestamps
> csph deployment logs <deployment-id> --since 1h --timestamps
# search the logs (server-side, case-insensitive)
> csph deployment logs <deployment-id> --search "timeout"
> csph deployment logs <deployment-id> -q "/health" --since 1h
# rollout / deploy events
> csph deployment logs <deployment-id> --kind deploy
# build output for the latest deploy
> csph deployment logs <deployment-id> --kind build
# output of one build (follows it live while it runs)
> csph deployment logs <deployment-id> --build <build-id>
See also​
- csph deployments — manage deployments
- csph deployments get — get deployments
- csph deployments list — list deployments
- csph deployments update — update deployments
- csph deployments delete — delete deployments
- csph deployments start — start a deployment
- csph deployments stop — stop a deployment
- csph deployments restart — restart a deployment
- csph deployments redeploy — redeploy a deployment
- csph deployments promote — deploy an image built for another environment, without rebuilding
- csph deployments rollback — roll a deployment back to a previous version
- csph deployments scale — scale a deployment to a target spherelet count
- csph deployments port — update the port of a deployment
- csph deployments domains — manage a deployment's custom domains
- csph deployments builds — manage a deployment's builds
- csph deployments runs — start and manage runs
- csph deployments default-url — turn the deployment's default URL off or on