CLI
NAME
woodpecker-cli - command line utility
SYNOPSIS
woodpecker-cli
[--config|-c]=[value]
[--disable-update-check]
[--log-file]=[value]
[--log-level]=[value]
[--nocolor]
[--pretty]
[--server|-s]=[value]
[--skip-verify]
[--socks-proxy-off]
[--socks-proxy]=[value]
[--token|-t]=[value]
DESCRIPTION
Woodpecker command line utility
Usage:
woodpecker-cli [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]
GLOBAL OPTIONS
--config, -c="": path to config file
--disable-update-check: disable update check
--log-file="": Output destination for logs. 'stdout' and 'stderr' can be used as special keywords. (default: stderr)
--log-level="": set logging level (default: info)
--nocolor: disable colored debug output, only has effect if pretty output is set too
--pretty: enable pretty-printed debug output
--server, -s="": server address
--skip-verify: skip ssl verification
--socks-proxy="": socks proxy address
--socks-proxy-off: socks proxy ignored
--token, -t="": server auth token
COMMANDS
adminโ
manage server settings
log-levelโ
retrieve log level from server, or set it with [level]
registryโ
manage global registries
addโ
add a registry
--hostname="": registry hostname (default: docker.io)
--password="": registry password
--username="": registry username
rmโ
remove a registry
--hostname="": registry hostname (default: docker.io)
lsโ
list registries
showโ
show registry information
--hostname="": registry hostname (default: docker.io)
updateโ
update a registry
--hostname="": registry hostname (default: docker.io)
--organization, --org="": organization id or full name (e.g. 123 or octocat)
--password="": registry password
--username="": registry username
secretโ
manage global secrets
addโ
add a secret
--event="": secret limited to these events (default: [])
--image="": secret limited to these images (default: [])
--value="": secret value
rmโ
remove a secret
--name="": secret name
lsโ
list secrets
showโ
show secret information
--name="": secret name
updateโ
update a secret
--event="": secret limited to these events (default: [])
--image="": secret limited to these images (default: [])
--name="": secret name
--value="": secret value
userโ
manage users
addโ
add a user
lsโ
list all users
--format="": format output (default: {{ .Login }})
rmโ
remove a user
showโ
show user information
--format="": format output (default: User: {{ .Login }} Email: {{ .Email }})
execโ
execute a local pipeline
--backend-docker-api-version="": the version of the API to reach, leave empty for latest.
--backend-docker-cert="": path to load the TLS certificates for connecting to docker server
--backend-docker-host="": path to docker socket or url to the docker server
--backend-docker-ipv6: backend docker enable IPV6
--backend-docker-limit-cpu-quota="": impose a cpu quota (default: 0)
--backend-docker-limit-cpu-set="": set the cpus allowed to execute containers
--backend-docker-limit-cpu-shares="": change the cpu shares (default: 0)
--backend-docker-limit-mem="": maximum memory allowed in bytes (default: 0)
--backend-docker-limit-mem-swap="": maximum memory used for swap in bytes (default: 0)
--backend-docker-limit-shm-size="": docker /dev/shm allowed in bytes (default: 0)
--backend-docker-network="": backend docker network
--backend-docker-tls-verify: enable or disable TLS verification for connecting to docker server
--backend-docker-volumes="": backend docker volumes (comma separated)
--backend-engine="": backend engine to run pipelines on (default: auto-detect)
--backend-http-proxy="": if set, pass the environment variable down as "HTTP_PROXY" to steps
--backend-https-proxy="": if set, pass the environment variable down as "HTTPS_PROXY" to steps
--backend-k8s-allow-native-secrets: whether to allow existing Kubernetes secrets to be referenced from steps
--backend-k8s-namespace="": backend k8s namespace (default: woodpecker)
--backend-k8s-pod-annotations="": backend k8s additional Agent-wide worker pod annotations
--backend-k8s-pod-annotations-allow-from-step: whether to allow using annotations from step's backend options
--backend-k8s-pod-image-pull-secret-names="": backend k8s pull secret names for private registries (default: [])
--backend-k8s-pod-labels="": backend k8s additional Agent-wide worker pod labels
--backend-k8s-pod-labels-allow-from-step: whether to allow using labels from step's backend options
--backend-k8s-pod-node-selector="": backend k8s Agent-wide worker pod node selector
--backend-k8s-secctx-nonroot: run as non root
Kubernetes security context option
--backend-k8s-storage-class="": backend k8s storage class
--backend-k8s-storage-rwx: backend k8s storage access mode, should ReadWriteMany (RWX) instead of ReadWriteOnce (RWO) be used? (default: true)
--backend-k8s-volume-size="": backend k8s volume size (default 10G) (default: 10G)
--backend-local-temp-dir="": set a different temp dir to clone workflows into (default: /tmp)
--backend-no-proxy="": if set, pass the environment variable down as "NO_PROXY" to steps
--commit-author-avatar="": Set the metadata environment variable "CI_COMMIT_AUTHOR_AVATAR".
--commit-author-email="": Set the metadata environment variable "CI_COMMIT_AUTHOR_EMAIL".
--commit-author-name="": Set the metadata environment variable "CI_COMMIT_AUTHOR".
--commit-branch="": Set the metadata environment variable "CI_COMMIT_BRANCH". (default: main)
--commit-message="": Set the metadata environment variable "CI_COMMIT_MESSAGE".
--commit-pull-labels="": Set the metadata environment variable "CI_COMMIT_PULL_REQUEST_LABELS". (default: [])
--commit-ref="": Set the metadata environment variable "CI_COMMIT_REF".
--commit-refspec="": Set the metadata environment variable "CI_COMMIT_REFSPEC".
--commit-release-is-pre: Set the metadata environment variable "CI_COMMIT_PRERELEASE".
--commit-sha="": Set the metadata environment variable "CI_COMMIT_SHA".
--env="": Set the metadata environment variable "CI_ENV". (default: [])
--forge-type="": Set the metadata environment variable "CI_FORGE_TYPE".
--forge-url="": Set the metadata environment variable "CI_FORGE_URL".
--local: run from local directory
--metadata-file="": path to pipeline metadata file (normally downloaded from UI). Parameters can be adjusted by applying additional cli flags
--netrc-machine="":
--netrc-password="":
--netrc-username="":
--network="": external networks (default: [])
--pipeline-changed-files="": Set the metadata environment variable "CI_PIPELINE_FILES", either json formatted list of strings, or comma separated string list.
--pipeline-created="": Set the metadata environment variable "CI_PIPELINE_CREATED". (default: 0)
--pipeline-deploy-task="": Set the metadata environment variable "CI_PIPELINE_DEPLOY_TASK".
--pipeline-deploy-to="": Set the metadata environment variable "CI_PIPELINE_DEPLOY_TARGET".
--pipeline-event="": Set the metadata environment variable "CI_PIPELINE_EVENT". (default: manual)
--pipeline-number="": Set the metadata environment variable "CI_PIPELINE_NUMBER". (default: 0)
--pipeline-parent="": Set the metadata environment variable "CI_PIPELINE_PARENT". (default: 0)
--pipeline-started="": Set the metadata environment variable "CI_PIPELINE_STARTED". (default: 0)
--pipeline-url="": Set the metadata environment variable "CI_PIPELINE_FORGE_URL".
--plugins-privileged="": Allow plugins to run in privileged mode, if environment variable is defined but empty there will be none (default: [])
--prev-commit-author-avatar="": Set the metadata environment variable "CI_PREV_COMMIT_AUTHOR_AVATAR".
--prev-commit-author-email="": Set the metadata environment variable "CI_PREV_COMMIT_AUTHOR_EMAIL".
--prev-commit-author-name="": Set the metadata environment variable "CI_PREV_COMMIT_AUTHOR".
--prev-commit-branch="": Set the metadata environment variable "CI_PREV_COMMIT_BRANCH".
--prev-commit-message="": Set the metadata environment variable "CI_PREV_COMMIT_MESSAGE".
--prev-commit-ref="": Set the metadata environment variable "CI_PREV_COMMIT_REF".
--prev-commit-refspec="": Set the metadata environment variable "CI_PREV_COMMIT_REFSPEC".
--prev-commit-sha="": Set the metadata environment variable "CI_PREV_COMMIT_SHA".
--prev-pipeline-created="": Set the metadata environment variable "CI_PREV_PIPELINE_CREATED". (default: 0)
--prev-pipeline-deploy-task="": Set the metadata environment variable "CI_PREV_PIPELINE_DEPLOY_TASK".
--prev-pipeline-deploy-to="": Set the metadata environment variable "CI_PREV_PIPELINE_DEPLOY_TARGET".
--prev-pipeline-event="": Set the metadata environment variable "CI_PREV_PIPELINE_EVENT".
--prev-pipeline-finished="": Set the metadata environment variable "CI_PREV_PIPELINE_FINISHED". (default: 0)
--prev-pipeline-number="": Set the metadata environment variable "CI_PREV_PIPELINE_NUMBER". (default: 0)
--prev-pipeline-started="": Set the metadata environment variable "CI_PREV_PIPELINE_STARTED". (default: 0)
--prev-pipeline-status="": Set the metadata environment variable "CI_PREV_PIPELINE_STATUS".
--prev-pipeline-url="": Set the metadata environment variable "CI_PREV_PIPELINE_FORGE_URL".
--repo="": Set the full name to derive metadata environment variables "CI_REPO", "CI_REPO_NAME" and "CI_REPO_OWNER".
--repo-clone-ssh-url="": Set the metadata environment variable "CI_REPO_CLONE_SSH_URL".
--repo-clone-url="": Set the metadata environment variable "CI_REPO_CLONE_URL".
--repo-default-branch="": Set the metadata environment variable "CI_REPO_DEFAULT_BRANCH". (default: main)
--repo-path="": path to local repository
--repo-private="": Set the metadata environment variable "CI_REPO_PRIVATE".
--repo-remote-id="": Set the metadata environment variable "CI_REPO_REMOTE_ID".
--repo-trusted-network: Set the metadata environment variable "CI_REPO_TRUSTED_NETWORK".
--repo-trusted-security: Set the metadata environment variable "CI_REPO_TRUSTED_SECURITY".
--repo-trusted-volumes: Set the metadata environment variable "CI_REPO_TRUSTED_VOLUMES".
--repo-url="": Set the metadata environment variable "CI_REPO_URL".
--system-host="": Set the metadata environment variable "CI_SYSTEM_HOST".
--system-name="": Set the metadata environment variable "CI_SYSTEM_NAME". (default: woodpecker)
--system-platform="": Set the metadata environment variable "CI_SYSTEM_PLATFORM".
--system-url="": Set the metadata environment variable "CI_SYSTEM_URL". (default: https://github.com/woodpecker-ci/woodpecker)
--timeout="": pipeline timeout (default: 1h0m0s)
--volumes="": pipeline volumes (default: [])
--workflow-name="": Set the metadata environment variable "CI_WORKFLOW_NAME".
--workflow-number="": Set the metadata environment variable "CI_WORKFLOW_NUMBER". (default: 0)
--workspace-base="": (default: /woodpecker)
--workspace-path="": (default: src)
infoโ
show information about the current user
lintโ
lint a pipeline configuration file
--plugins-privileged="": allow plugins to run in privileged mode, if set empty, there is no (default: [])
--plugins-trusted-clone="": plugins that are trusted to handle Git credentials in cloning steps (default: [docker.io/woodpeckerci/plugin-git:2.6.0 docker.io/woodpeckerci/plugin-git quay.io/woodpeckerci/plugin-git])
--strict: treat warnings as errors
orgโ
manage organizations
registryโ
manage organization registries
addโ
add a registry
--hostname="": registry hostname (default: docker.io)
--organization, --org="": organization id or full name (e.g. 123 or octocat)
--password="": registry password
--username="": registry username
rmโ
remove a registry
--hostname="": registry hostname (default: docker.io)
--organization, --org="": organization id or full name (e.g. 123 or octocat)
lsโ
list registries
--organization, --org="": organization id or full name (e.g. 123 or octocat)
showโ
show registry information
--hostname="": registry hostname (default: docker.io)
--organization, --org="": organization id or full name (e.g. 123 or octocat)
updateโ
update a registry
--hostname="": registry hostname (default: docker.io)
--organization, --org="": organization id or full name (e.g. 123 or octocat)
--password="": registry password
--username="": registry username
secretโ
manage secrets
addโ
add a secret
--event="": secret limited to these events (default: [])
--image="": secret limited to these images (default: [])
--name="": secret name
--organization, --org="": organization id or full name (e.g. 123 or octocat)
--value="": secret value
rmโ
remove a secret
--name="": secret name
--organization, --org="": organization id or full name (e.g. 123 or octocat)
lsโ
list secrets
--organization, --org="": organization id or full name (e.g. 123 or octocat)
showโ
show secret information
--name="": secret name
--organization, --org="": organization id or full name (e.g. 123 or octocat)
updateโ
update a secret
--event="": limit secret to these event (default: [])
--image="": limit secret to these image (default: [])
--name="": secret name
--organization, --org="": organization id or full name (e.g. 123 or octocat)
--value="": secret value
pipelineโ
manage pipelines
approveโ
approve a pipeline
createโ
create new pipeline
--branch="": branch to create pipeline from
--output="": output format (default: table)
--output-no-headers: don't print headers
--var="": key=value (default: [])
declineโ
decline a pipeline
deployโ
trigger a pipeline with the 'deployment' event
--branch="": branch filter
--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 }} )
--param, -p="": custom parameters to inject into the step environment. Format: KEY=value (default: [])
--status="": status filter (default: success)
lastโ
show latest pipeline information
--branch="": branch name (default: main)
--output="": output format (default: table)
--output-no-headers: don't print headers
lsโ
show pipeline history
--after="": only return pipelines after this date (RFC3339) (default: 0001-01-01 00:00:00 +0000 UTC)
--before="": only return pipelines before this date (RFC3339) (default: 0001-01-01 00:00:00 +0000 UTC)
--branch="": branch filter
--event="": event filter
--limit="": limit the list size (default: 25)
--output="": output format (default: table)
--output-no-headers: don't print headers
--status="": status filter
logโ
manage logs
purgeโ
purge a log
showโ
show pipeline logs
psโ
show pipeline steps
--format="": format output (default: [33m{{ .workflow.Name }} > {{ .step.Name }} (#{{ .step.PID }}):[0m Step: {{ .step.Name }} Started: {{ .step.Started }} Stopped: {{ .step.Stopped }} Type: {{ .step.Type }} State: {{ .step.State }} )
purgeโ
purge pipelines
--dry-run: disable non-read api calls
--keep-min="": minimum number of pipelines to keep (default: 10)
--older-than="": remove pipelines older than the specified time limit
queueโ
show pipeline queue
--format="": format output (default: [33m{{ .FullName }} #{{ .Number }} [0m Status: {{ .Status }} Event: {{ .Event }} Commit: {{ .Commit }} Branch: {{ .Branch }} Ref: {{ .Ref }} Author: {{ .Author }} {{ if .Email }}<{{.Email}}>{{ end }} Message: {{ .Message }} )
showโ
show pipeline information
--output="": output format (default: table)
--output-no-headers: don't print headers
startโ
start a pipeline
--param, -p="": custom parameters to inject into the step environment. Format: KEY=value (default: [])
stopโ
stop a pipeline
repoโ
manage repositories
addโ
add a repository
chownโ
assume ownership of a repository
cronโ
manage cron jobs
addโ
add a cron job
--branch="": cron branch
--name="": cron name
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
--schedule="": cron schedule
rmโ
remove a cron job
--id="": cron id
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
lsโ
list cron jobs
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
showโ
show cron job information
--id="": cron id
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
updateโ
update a cron job
--branch="": cron branch
--id="": cron id
--name="": cron name
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
--schedule="": cron schedule
lsโ
list all repos
--all: query all repos, including inactive ones
--format="": format output (default: [33m{{ .FullName }}[0m (id: {{ .ID }}, forgeRemoteID: {{ .ForgeRemoteID }}, isActive: {{ .IsActive }}))
--org="": filter by organization
registryโ
manage registries
addโ
add a registry
--hostname="": registry hostname (default: docker.io)
--password="": registry password
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
--username="": registry username
rmโ
remove a registry
--hostname="": registry hostname (default: docker.io)
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
lsโ
list registries
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
showโ
show registry information
--hostname="": registry hostname (default: docker.io)
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
updateโ
update a registry
--hostname="": registry hostname (default: docker.io)
--password="": registry password
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
--username="": registry username
rmโ
remove a repository
repairโ
repair repository webhooks
secretโ
manage secrets
addโ
add a secret
--event="": limit secret to these events (default: [])
--image="": limit secret to these images (default: [])
--name="": secret name
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
--value="": secret value
rmโ
remove a secret
--name="": secret name
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
lsโ
list secrets
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
showโ
show secret information
--name="": secret name
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
updateโ
update a secret
--event="": limit secret to these events (default: [])
--image="": limit secret to these images (default: [])
--name="": secret name
--repository, --repo="": repository id or full name (e.g. 134 or octocat/hello-world)
--value="": secret value
showโ
show repository information
--format="": format output (default: Owner: {{ .Owner }} Repo: {{ .Name }} URL: {{ .ForgeURL }} Config path: {{ .Config }} Visibility: {{ .Visibility }} Private: {{ .IsSCMPrivate }} Trusted: {{ .IsTrusted }} Gated: {{ .IsGated }} Require approval for: {{ .RequireApproval }} Clone url: {{ .Clone }} Allow pull-requests: {{ .AllowPullRequests }} )
syncโ
synchronize the repository list
--format="": format output (default: [33m{{ .FullName }}[0m (id: {{ .ID }}, forgeRemoteID: {{ .ForgeRemoteID }}, isActive: {{ .IsActive }}))
updateโ
update a repository
--config="": repository configuration path. Example: .woodpecker.yml
--pipeline-counter="": repository starting pipeline number (default: 0)
--require-approval="": repository requires approval for
--timeout="": repository timeout (default: 0s)
--trusted: repository is trusted
--unsafe: allow unsafe operations
--visibility="": repository visibility
setupโ
setup the woodpecker-cli for the first time
--server="": URL of the woodpecker server
--token="": token to authenticate with the woodpecker server
updateโ
update the woodpecker-cli to the latest version
--force: force update even if the latest version is already installed