Skip to main content

CLI

NAME

woodpecker-cli - command line utility

SYNOPSIS

woodpecker-cli

[--log-level]=[value]
[--server|-s]=[value]
[--token|-t]=[value]

Usage:

woodpecker-cli [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]

GLOBAL OPTIONS

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

COMMANDS

buildโ€‹

manage builds

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

lsโ€‹

show build history

--branch="": branch filter

--event="": event filter

--format="": format output (default: Build #{{ .Number }}  Status: {{ .Status }} Event: {{ .Event }} Commit: {{ .Commit }} Branch: {{ .Branch }} Ref: {{ .Ref }} Author: {{ .Author }} {{ if .Email }}<{{.Email}}>{{ end }} Message: {{ .Message }} )

--limit="": limit the list size (default: 25)

--log-level="": set logging level (default: info)

--server, -s="": server address

--status="": status filter

--token, -t="": server auth token

lastโ€‹

show latest build details

--branch="": branch name (default: master)

--format="": format output (default: Number: {{ .Number }} Status: {{ .Status }} Event: {{ .Event }} Commit: {{ .Commit }} Branch: {{ .Branch }} Ref: {{ .Ref }} Message: {{ .Message }} Author: {{ .Author }} )

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

logsโ€‹

show build logs

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

infoโ€‹

show build details

--format="": format output (default: Number: {{ .Number }} Status: {{ .Status }} Event: {{ .Event }} Commit: {{ .Commit }} Branch: {{ .Branch }} Ref: {{ .Ref }} Message: {{ .Message }} Author: {{ .Author }} )

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

stopโ€‹

stop a build

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

startโ€‹

start a build

--log-level="": set logging level (default: info)

--param, -p="": custom parameters to be injected into the job environment. Format: KEY=value

--server, -s="": server address

--token, -t="": server auth token

approveโ€‹

approve a build

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

declineโ€‹

decline a build

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

queueโ€‹

show build queue

--format="": format output (default: {{ .FullName }} #{{ .Number }}  Status: {{ .Status }} Event: {{ .Event }} Commit: {{ .Commit }} Branch: {{ .Branch }} Ref: {{ .Ref }} Author: {{ .Author }} {{ if .Email }}<{{.Email}}>{{ end }} Message: {{ .Message }} )

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

psโ€‹

show build steps

--format="": format output (default: Proc #{{ .PID }}  Step: {{ .Name }} State: {{ .State }} )

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

logโ€‹

manage logs

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

purgeโ€‹

purge a log

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

deployโ€‹

deploy code

--branch="": branch filter (default: master)

--event="": event filter (default: push)

--format="": format output (default: Number: {{ .Number }} Status: {{ .Status }} Commit: {{ .Commit }} Branch: {{ .Branch }} Ref: {{ .Ref }} Message: {{ .Message }} Author: {{ .Author }} Target: {{ .Deploy }} )

--log-level="": set logging level (default: info)

--param, -p="": custom parameters to be injected into the job environment. Format: KEY=value

--server, -s="": server address

--status="": status filter (default: success)

--token, -t="": server auth token

execโ€‹

execute a local build

--backend-engine="": backend engine to run pipelines on (default: auto-detect)

--build-created="": (default: 0)

--build-event="":

--build-finished="": (default: 0)

--build-link="":

--build-number="": (default: 0)

--build-started="": (default: 0)

--build-status="":

--build-target="":

--commit-author-avatar="":

--commit-author-email="":

--commit-author-name="":

--commit-branch="":

--commit-message="":

--commit-ref="":

--commit-refspec="":

--commit-sha="":

--env="":

--job-number="": (default: 0)

--local: build from local directory

--log-level="": set logging level (default: info)

--netrc-machine="":

--netrc-password="":

--netrc-username="":

--network="": external networks

--parent-build-number="": (default: 0)

--prev-build-created="": (default: 0)

--prev-build-event="":

--prev-build-finished="": (default: 0)

--prev-build-link="":

--prev-build-number="": (default: 0)

--prev-build-started="": (default: 0)

--prev-build-status="":

--prev-commit-author-avatar="":

--prev-commit-author-email="":

--prev-commit-author-name="":

--prev-commit-branch="":

--prev-commit-message="":

--prev-commit-ref="":

--prev-commit-refspec="":

--prev-commit-sha="":

--privileged="": privileged plugins (default: [plugins/docker plugins/gcr plugins/ecr woodpeckerci/plugin-docker woodpeckerci/plugin-docker-buildx])

--repo-link="":

--repo-name="":

--repo-private="":

--repo-remote-url="":

--server, -s="": server address

--system-arch="": (default: linux/amd64)

--system-link="": (default: https://github.com/cncd/pipec)

--system-name="": (default: pipec)

--timeout="": build timeout (default: 1h0m0s)

--token, -t="": server auth token

--volumes="": build volumes

--workspace-base="": (default: /woodpecker)

--workspace-path="": (default: src)

infoโ€‹

show information about the current user

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

registryโ€‹

manage registries

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

addโ€‹

adds a registry

--hostname="": registry hostname (default: docker.io)

--log-level="": set logging level (default: info)

--password="": registry password

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

--username="": registry username

rmโ€‹

remove a registry

--hostname="": registry hostname (default: docker.io)

--log-level="": set logging level (default: info)

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

updateโ€‹

update a registry

--hostname="": registry hostname (default: docker.io)

--log-level="": set logging level (default: info)

--password="": registry password

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

--username="": registry username

infoโ€‹

display registry info

--hostname="": registry hostname (default: docker.io)

--log-level="": set logging level (default: info)

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

lsโ€‹

list registries

--log-level="": set logging level (default: info)

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

secretโ€‹

manage secrets

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

addโ€‹

adds a secret

--event="": secret limited to these events

--image="": secret limited to these images

--log-level="": set logging level (default: info)

--name="": secret name

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

--value="": secret value

rmโ€‹

remove a secret

--log-level="": set logging level (default: info)

--name="": secret name

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

updateโ€‹

update a secret

--event="": secret limited to these events

--image="": secret limited to these images

--log-level="": set logging level (default: info)

--name="": secret name

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

--value="": secret value

infoโ€‹

display secret info

--log-level="": set logging level (default: info)

--name="": secret name

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

lsโ€‹

list secrets

--log-level="": set logging level (default: info)

--repository="": repository name (e.g. octocat/hello-world)

--server, -s="": server address

--token, -t="": server auth token

repoโ€‹

manage repositories

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

lsโ€‹

list all repos

--format="": format output (default: {{ .FullName }})

--log-level="": set logging level (default: info)

--org="": filter by organization

--server, -s="": server address

--token, -t="": server auth token

infoโ€‹

show repository details

--format="": format output (default: Owner: {{ .Owner }} Repo: {{ .Name }} Type: {{ .SCMKind }} Config: {{ .Config }} Visibility: {{ .Visibility }} Private: {{ .IsSCMPrivate }} Trusted: {{ .IsTrusted }} Gated: {{ .IsGated }} Remote: {{ .Clone }} )

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

addโ€‹

add a repository

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

updateโ€‹

update a repository

--build-counter="": repository starting build number (default: 0)

--config="": repository configuration path (e.g. .woodpecker.yml)

--gated: repository is gated

--log-level="": set logging level (default: info)

--server, -s="": server address

--timeout="": repository timeout (default: 0s)

--token, -t="": server auth token

--trusted: repository is trusted

--unsafe: validate updating the build-counter is unsafe

--visibility="": repository visibility

rmโ€‹

remove a repository

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

repairโ€‹

repair repository webhooks

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

chownโ€‹

assume ownership of a repository

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

syncโ€‹

synchronize the repository list

--format="": format output (default: {{ .FullName }})

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

userโ€‹

manage users

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

lsโ€‹

list all users

--format="": format output (default: {{ .Login }})

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

infoโ€‹

show user details

--format="": format output (default: User: {{ .Login }} Email: {{ .Email }})

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

addโ€‹

adds a user

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

rmโ€‹

remove a user

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

lintโ€‹

lint a pipeline configuration file

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token

log-levelโ€‹

get the logging level of the server, or set it with [level]

--log-level="": set logging level (default: info)

--server, -s="": server address

--token, -t="": server auth token