.nh .TH "GT-RUN-LOGS" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-run-logs - Print the logs of a run's jobs .SH SYNOPSIS \fBgt run logs [] [flags]\fP .SH DESCRIPTION Print the logs of a run's jobs, one after another; the name of each job goes to stderr. With --tail, gt prints only the last lines of each job's log. --failed selects the jobs that failed or were canceled, those that gt run rerun --failed reruns. .PP With --follow, gt waits for jobs to start and prints new log lines until they complete, prefixing each line with its job's name when it follows several jobs. With --output or --dir, it downloads the logs of the whole run as a ZIP archive instead. The URL of a job selects that job, like --job. .SS ARGUMENTS .EX A run can be supplied as its ID ("34", "#34") or its URL ("https://gitea.example.com/OWNER/REPO/actions/runs/34"). Without an argument, gt asks for one of the repository's recent runs in a terminal. .EE .SH OPTIONS \fB--clobber\fP[=false] Replace an existing file .PP \fB-D\fP, \fB--dir\fP="" Directory to download into .PP \fB--failed\fP[=false] Only the logs of failed and canceled jobs .PP \fB-f\fP, \fB--follow\fP[=false] Wait for jobs to start and print new lines until they complete .PP \fB-h\fP, \fB--help\fP[=false] help for logs .PP \fB-i\fP, \fB--interval\fP=5s Polling interval with --follow .PP \fB-j\fP, \fB--job\fP="" Only the logs of this job, by \fBname or ID\fR .PP \fB-O\fP, \fB--output\fP="" File or directory to write to, or - for standard output (default: the download's name) .PP \fB--skip-existing\fP[=false] Keep an existing file and skip the download .PP \fB--tail\fP=0 Only the last \fBN\fR lines of each job's log .PP \fB--timeout\fP=1h0m0s Maximum time to follow .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX # print the logs of every job of a run $ gt run logs 34 # follow the logs of one job while it runs $ gt run logs 34 --job build --follow # print the last 50 lines of each failed or canceled job $ gt run logs 34 --failed --tail 50 # download the logs as a ZIP archive $ gt run logs 34 --output logs.zip .EE .SH SEE ALSO \fBgt-run(1)\fP