Linux command
fly 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Set build target
fly -t [target] set-pipeline
Trigger job
fly -t [target] trigger-job -j [pipeline/job]
Watch job logs
fly -t [target] watch -j [pipeline/job]
Login to Concourse
fly -t [target] login -c [https://ci.example.com]
Sync fly version
fly -t [target] sync
说明
fly is the CLI for Concourse CI, a container-based continuous integration system. It manages pipelines, triggers builds, and interacts with Concourse servers. The tool handles pipeline configuration, job management, and build monitoring. Each Concourse instance is registered as a named target for easy switching between CI servers. fly enables scriptable CI/CD workflows and provides real-time access to build logs and status.
参数
- -t, --target _TARGET_
- Concourse target name saved in ~/.flyrc.
- login
- Authenticate with a Concourse server (use -c _url_ for concourse URL, -n _team_ for team).
- logout
- Clear saved token for a target.
- targets
- List all configured targets and their token expiration.
- set-pipeline
- Create or update a pipeline from YAML (-p _pipeline_ -c _config.yml_).
- get-pipeline
- Output a pipeline's current configuration (-p _pipeline_).
- destroy-pipeline
- Remove a pipeline (-p _pipeline_).
- unpause-pipeline, pause-pipeline
- Enable or disable a pipeline.
- trigger-job
- Start job execution (-j _pipeline/job_).
- watch
- Stream a build's output (-j _pipeline/job_ or -b _build_).
- execute
- Run a one-off task locally (-c _task.yml_).
- sync
- Update local fly binary to match server version.
- --help
- Display help information.
FAQ
What is the fly command used for?
fly is the CLI for Concourse CI, a container-based continuous integration system. It manages pipelines, triggers builds, and interacts with Concourse servers. The tool handles pipeline configuration, job management, and build monitoring. Each Concourse instance is registered as a named target for easy switching between CI servers. fly enables scriptable CI/CD workflows and provides real-time access to build logs and status.
How do I run a basic fly example?
Run `fly -t [target] set-pipeline` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -t, --target _TARGET_ do in fly?
Concourse target name saved in ~/.flyrc.