2023-07-25 10:41:58 +00:00
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
## pipeline, build
|
|
|
|
|
|
|
|
|
|
manage pipelines
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### ls
|
|
|
|
|
|
|
|
|
|
show pipeline history
|
|
|
|
|
|
|
|
|
|
**--branch**="": branch filter
|
|
|
|
|
|
|
|
|
|
**--event**="": event filter
|
|
|
|
|
|
|
|
|
|
**--format**="": format output (default: [33mPipeline #{{ .Number }} [0m
|
|
|
|
|
Status: {{ .Status }}
|
|
|
|
|
Event: {{ .Event }}
|
|
|
|
|
Commit: {{ .Commit }}
|
|
|
|
|
Branch: {{ .Branch }}
|
|
|
|
|
Ref: {{ .Ref }}
|
|
|
|
|
Author: {{ .Author }} {{ if .Email }}<{{.Email}}>{{ end }}
|
|
|
|
|
Message: {{ .Message }}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
**--limit**="": limit the list size (default: 0)
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--status**="": status filter
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### last
|
|
|
|
|
|
|
|
|
|
show latest pipeline 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 pipeline logs
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### info
|
|
|
|
|
|
|
|
|
|
show pipeline 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 pipeline
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### start
|
|
|
|
|
|
|
|
|
|
start a pipeline
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--param, -p**="": custom parameters to be injected into the step environment. Format: KEY=value
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### approve
|
|
|
|
|
|
|
|
|
|
approve a pipeline
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### decline
|
|
|
|
|
|
|
|
|
|
decline a pipeline
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### 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 }}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### ps
|
|
|
|
|
|
|
|
|
|
show pipeline steps
|
|
|
|
|
|
|
|
|
|
**--format**="": format output (default: [33mStep #{{ .PID }} [0m
|
|
|
|
|
Step: {{ .Name }}
|
|
|
|
|
State: {{ .State }}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### create
|
|
|
|
|
|
|
|
|
|
create new pipeline
|
|
|
|
|
|
|
|
|
|
**--branch**="": branch to create pipeline from
|
|
|
|
|
|
|
|
|
|
**--format**="": format output (default: [33mPipeline #{{ .Number }} [0m
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
**--var**="": key=value
|
|
|
|
|
|
|
|
|
|
## 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 step environment. Format: KEY=value
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--status**="": status filter (default: success)
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
## exec
|
|
|
|
|
|
|
|
|
|
execute a local pipeline
|
|
|
|
|
|
|
|
|
|
**--backend-docker-ipv6**: backend docker enable IPV6
|
|
|
|
|
|
|
|
|
|
**--backend-docker-network**="": backend docker network
|
|
|
|
|
|
|
|
|
|
**--backend-docker-volumes**="": backend docker volumes (comma separated)
|
|
|
|
|
|
|
|
|
|
**--backend-engine**="": backend engine to run pipelines on (default: auto-detect)
|
|
|
|
|
|
|
|
|
|
**--backend-k8s-namespace**="": backend k8s namespace (default: woodpecker)
|
|
|
|
|
|
|
|
|
|
**--backend-k8s-pod-annotations**="": backend k8s additional worker pod annotations
|
|
|
|
|
|
|
|
|
|
**--backend-k8s-pod-labels**="": backend k8s additional worker pod labels
|
|
|
|
|
|
|
|
|
|
**--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-ssh-address**="": backend ssh address
|
|
|
|
|
|
|
|
|
|
**--backend-ssh-key**="": backend ssh key file
|
|
|
|
|
|
|
|
|
|
**--backend-ssh-key-password**="": backend ssh key password
|
|
|
|
|
|
|
|
|
|
**--backend-ssh-password**="": backend ssh password
|
|
|
|
|
|
|
|
|
|
**--backend-ssh-user**="": backend ssh user
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-author-avatar**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-author-email**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-author-name**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-branch**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-message**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-ref**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-refspec**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--commit-sha**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--env**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--forge-type**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--forge-url**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--local**: run from local directory
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--netrc-machine**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--netrc-password**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--netrc-username**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--network**="": external networks
|
|
|
|
|
|
|
|
|
|
**--pipeline-created**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--pipeline-event**="": (default: manual)
|
|
|
|
|
|
|
|
|
|
**--pipeline-finished**="": (default: 0)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--pipeline-link**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--pipeline-number**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--pipeline-parent**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--pipeline-started**="": (default: 0)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--pipeline-status**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--pipeline-target**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-author-avatar**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-author-email**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-author-name**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-branch**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-message**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-ref**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-refspec**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-commit-sha**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--prev-pipeline-created**="": (default: 0)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-pipeline-event**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--prev-pipeline-finished**="": (default: 0)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-pipeline-link**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--prev-pipeline-number**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--prev-pipeline-started**="": (default: 0)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--prev-pipeline-status**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--privileged**="": privileged plugins (default: "plugins/docker", "plugins/gcr", "plugins/ecr", "woodpeckerci/plugin-docker-buildx")
|
|
|
|
|
|
|
|
|
|
**--repo**="": full repo name
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--repo-clone-url**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--repo-link**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--repo-private**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--repo-remote-id**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--repo-trusted**:
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--step-name**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--system-link**="": (default: https://github.com/woodpecker-ci/woodpecker)
|
|
|
|
|
|
|
|
|
|
**--system-name**="": (default: woodpecker)
|
|
|
|
|
|
2023-10-31 08:14:09 +00:00
|
|
|
|
**--system-platform**="":
|
2023-07-25 10:41:58 +00:00
|
|
|
|
|
|
|
|
|
**--timeout**="": pipeline timeout (default: 0s)
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
**--volumes**="": pipeline volumes
|
|
|
|
|
|
|
|
|
|
**--workflow-name**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--workflow-number**="": (default: 0)
|
|
|
|
|
|
|
|
|
|
**--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, --repo**="": repository id or full-name (e.g. 134 or 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, --repo**="": repository id or full-name (e.g. 134 or 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, --repo**="": repository id or full-name (e.g. 134 or 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, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### ls
|
|
|
|
|
|
|
|
|
|
list registries
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or 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
|
|
|
|
|
|
|
|
|
|
**--global**: global secret
|
|
|
|
|
|
|
|
|
|
**--image**="": secret limited to these images
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--name**="": secret name
|
|
|
|
|
|
|
|
|
|
**--organization**="": organization name (e.g. octocat)
|
|
|
|
|
|
|
|
|
|
**--plugins-only**: secret limited to plugins
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
**--value**="": secret value
|
|
|
|
|
|
|
|
|
|
### rm
|
|
|
|
|
|
|
|
|
|
remove a secret
|
|
|
|
|
|
|
|
|
|
**--global**: global secret
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--name**="": secret name
|
|
|
|
|
|
|
|
|
|
**--organization**="": organization name (e.g. octocat)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### update
|
|
|
|
|
|
|
|
|
|
update a secret
|
|
|
|
|
|
|
|
|
|
**--event**="": secret limited to these events
|
|
|
|
|
|
|
|
|
|
**--global**: global secret
|
|
|
|
|
|
|
|
|
|
**--image**="": secret limited to these images
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--name**="": secret name
|
|
|
|
|
|
|
|
|
|
**--organization**="": organization name (e.g. octocat)
|
|
|
|
|
|
|
|
|
|
**--plugins-only**: secret limited to plugins
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
**--value**="": secret value
|
|
|
|
|
|
|
|
|
|
### info
|
|
|
|
|
|
|
|
|
|
display secret info
|
|
|
|
|
|
|
|
|
|
**--global**: global secret
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--name**="": secret name
|
|
|
|
|
|
|
|
|
|
**--organization**="": organization name (e.g. octocat)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### ls
|
|
|
|
|
|
|
|
|
|
list secrets
|
|
|
|
|
|
|
|
|
|
**--global**: global secret
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--organization**="": organization name (e.g. octocat)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or 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: [33m{{ .FullName }}[0m (id: {{ .ID }}))
|
|
|
|
|
|
|
|
|
|
**--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 }}
|
|
|
|
|
Link: {{ .Link }}
|
|
|
|
|
Config path: {{ .Config }}
|
|
|
|
|
Visibility: {{ .Visibility }}
|
|
|
|
|
Private: {{ .IsSCMPrivate }}
|
|
|
|
|
Trusted: {{ .IsTrusted }}
|
|
|
|
|
Gated: {{ .IsGated }}
|
|
|
|
|
Clone url: {{ .Clone }}
|
|
|
|
|
Allow pull-requests: {{ .AllowPullRequests }}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
**--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
|
|
|
|
|
|
|
|
|
|
**--config**="": repository configuration path (e.g. .woodpecker.yml)
|
|
|
|
|
|
|
|
|
|
**--gated**: repository is gated
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--pipeline-counter**="": repository starting pipeline number (default: 0)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--timeout**="": repository timeout (default: 0s)
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
**--trusted**: repository is trusted
|
|
|
|
|
|
|
|
|
|
**--unsafe**: validate updating the pipeline-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: [33m{{ .FullName }}[0m (id: {{ .ID }}))
|
|
|
|
|
|
|
|
|
|
**--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
|
|
|
|
|
|
|
|
|
|
## cron
|
|
|
|
|
|
|
|
|
|
manage cron jobs
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### add
|
|
|
|
|
|
|
|
|
|
add a cron job
|
|
|
|
|
|
|
|
|
|
**--branch**="": cron branch
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--name**="": cron name
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--schedule**="": cron schedule
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### rm
|
|
|
|
|
|
|
|
|
|
remove a cron job
|
|
|
|
|
|
|
|
|
|
**--id**="": cron id
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### update
|
|
|
|
|
|
|
|
|
|
update a cron job
|
|
|
|
|
|
|
|
|
|
**--branch**="": cron branch
|
|
|
|
|
|
|
|
|
|
**--id**="": cron id
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--name**="": cron name
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--schedule**="": cron schedule
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### info
|
|
|
|
|
|
|
|
|
|
display info about a cron job
|
|
|
|
|
|
|
|
|
|
**--id**="": cron id
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|
|
|
|
|
|
|
|
|
|
### ls
|
|
|
|
|
|
|
|
|
|
list cron jobs
|
|
|
|
|
|
|
|
|
|
**--log-level**="": set logging level (default: info)
|
|
|
|
|
|
|
|
|
|
**--repository, --repo**="": repository id or full-name (e.g. 134 or octocat/hello-world)
|
|
|
|
|
|
|
|
|
|
**--server, -s**="": server address
|
|
|
|
|
|
|
|
|
|
**--token, -t**="": server auth token
|