커맨드라인 참조 개요
에이전트에는 커맨드라인에서 에이전트와 상호작용하고 제어할 수 있게 해 주는 CLI(커맨드라인 인터페이스)가 있어요. 포괄적인 명령 세트를 통해 Buildkite Pipelines와 상호작용하고, 에이전트 구성을 관리하며, 작업 실행을 제어하고, 아티팩트를 조작할 수 있어요. 이 명령들은 빌드 인프라를 관리하고, 작업을 자동화하며, 문제를 해결하는 데 필수적이에요.
에이전트 CLI에는 다음 명령과 내장 도움말이 있어요. 더 자세한 도움말을 보려면 연결된 명령을 선택하세요.
출처: 문서
본문
$ buildkite-agent --help
Usage:
buildkite-agent <command> [options...]
Available commands are:
start Starts a Buildkite agent
acknowledgements Prints the licenses and notices of open source software incorporated into this software.
tool Utilities for working with the Buildkite Agent
help, h Shows a list of commands or help for one command
Commands that can be run within a Buildkite job:
annotate Annotate the build page in the Buildkite UI with information from within a Buildkite job
annotation Make changes to annotations on the currently running build
artifact Upload/download artifacts from Buildkite jobs
build Interact with a Buildkite build
job Interact with a Buildkite job
env Interact with the environment of the currently running build
lock Lock or unlock resources for the currently running build
redactor Redact sensitive information from logs
meta-data Get/set metadata from Buildkite jobs
oidc Interact with Buildkite OpenID Connect (OIDC)
pause Pause the agent
pipeline Make changes to the pipeline of the currently running build
resume Resume the agent
secret Interact with Pipelines Secrets
step Get or update an attribute of a build step, or cancel unfinished jobs for a step
stop Stop the agent
workdir Interact with the working directory of the currently running job
Internal commands, not intended to be run by users:
bootstrap Harness used internally by the agent to run jobs as subprocesses
kubernetes-bootstrap Harness used internally by the agent to run jobs on Kubernetes
git-credentials-helper Internal process used to authenticate with repository providers
Use "buildkite-agent <command> --help" for more information about a command.
에이전트 CLI의 명령들은 크게 세 가지로 나눌 수 있어요.
- 에이전트 자체 명령:
start,tool,help처럼 에이전트 프로세스 자체를 시작하거나 다루는 명령이에요. - Buildkite 작업 안에서 실행하는 명령:
annotate,artifact,build,job,env,lock,redactor,meta-data,oidc,pause,pipeline,resume,secret,step,stop,workdir처럼 빌드 페이지에 주석을 달거나 아티팩트를 다루거나 메타데이터를 설정하는 등, 파이프라인 스텝에서 자주 사용하는 명령이에요. - 내부 명령:
bootstrap,kubernetes-bootstrap,git-credentials-helper처럼 사용자가 직접 실행하도록 만들어진 게 아니라 에이전트 내부에서 하위 프로세스로 작업을 실행할 때 사용하는 명령이에요.
각 명령에 대한 자세한 도움말은 해당 명령 페이지에서, 또는 커맨드라인에서 buildkite-agent <command> --help를 실행해 확인할 수 있어요.
더 알아보기 (Learn more)
Buildkite 에이전트 CLI는 파이프라인과 상호작용하고, 작업을 제어하며, 아티팩트와 메타데이터를 다루는 데 필요한 모든 명령을 제공해요. buildkite-agent --help로 전체 명령 목록을 확인하고, 각 명령 페이지에서 자세한 사용법과 예시를 살펴보세요.