dcloud ci jobs logs

Read one page of a job’s log

IAM ci:GetRunLogsRead

Answers `{ lines, nextCursor, hasMore }`. Pass nextCursor back as `cursor` for the next page; while the job runs, an empty page means no new lines yet.

Synopsis

dcloud ci jobs logs jobId [flags]

Arguments

  • <jobId>Required

    string

    Also accepted as --job-id. Constraints: uuid

Flags

  • --afterOptional

    number

    Older clients: the sequence number to read after (lines are numbered from 0). Prefer cursor, which wins when both are given; neither: from the first line

    Constraints: integer, min 0

  • --cursorOptional

    string

    nextCursor from the previous page, passed back unchanged; an altered one is refused with 400 (Invalid cursor)

  • --limitOptional

    number

    Lines per page, 1 to 1000; 500 when omitted. A page also stops at 2 MiB of text (always at least one line)

    Constraints: integer, 1-1000

Example

dcloud ci jobs logs jobId

Generated from the API description, the same one the API checks requests against and the CLI is built from.