CLI Pipeline Commands | FlightStack
Pipeline Commands
Section titled “Pipeline Commands”Two terminal-facing commands cover the pipeline lifecycle today:
flightstack pipeline lint— validate pipeline / step YAML against the FlightStack spec.flightstack logs— read or tail logs for a pipeline run.
Authoring (drag-and-drop) and run history still happen primarily in the visual editor — see the Pipeline Editor.
flightstack pipeline lint
Section titled “flightstack pipeline lint”Run the FlightStack pipeline linter against a local YAML file. Catches structural issues (graph cycles, expression syntax, secret provenance, matrix sanity, malformed YAML) without hitting the server.
flightstack pipeline lint <file>Options
Section titled “Options”| Flag | Description |
|---|---|
--json | Emit machine-readable JSON instead of the human renderer. |
--strict | Exit non-zero on warnings as well as errors. |
Examples
Section titled “Examples”# Human-readableflightstack pipeline lint .flightstack/pipeline.yml
# JSON for CIflightstack pipeline lint .flightstack/pipeline.yml --json
# Strict mode for pre-commit hooksflightstack pipeline lint .flightstack/pipeline.yml --strictSample output:
.flightstack/pipeline.yml:18:5 FS-W201 step 'voostack/deploy-ios@1.0.0' is not cached locally; resolution skipped hint: warning will not appear when running on the FlightStack runner
.flightstack/pipeline.yml:42:9 FS-E110 cyclic dependency: deploy-ios → build-ios → ci-build → deploy-ios
0 error(s), 1 warning(s)Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | No errors (and no warnings, if --strict). |
1 | Errors found, or warnings with --strict. |
2 | Bad invocation (missing file argument, file not found). |
flightstack logs
Section titled “flightstack logs”Print logs for a pipeline run, optionally tailing as new output streams in.
flightstack logs <run-id>Options
Section titled “Options”| Flag | Alias | Description |
|---|---|---|
--follow | -f | Tail logs — re-poll on --interval and print new entries. |
--interval <seconds> | Poll interval when following. Default 5. |
Examples
Section titled “Examples”# Print the current log buffer onceflightstack logs 9c1f2d76-abcd-4321-9c0e-8a4ea7d1f5b2
# Tail with the default 5-second intervalflightstack logs 9c1f2d76-abcd-4321-9c0e-8a4ea7d1f5b2 --follow
# Tail with a faster cadenceflightstack logs 9c1f2d76-abcd-4321-9c0e-8a4ea7d1f5b2 -f --interval 2Run IDs are visible in the visual editor under any pipeline run, and in the
REST API under /pipeline/runs/{runId}.
Editing pipelines visually
Section titled “Editing pipelines visually”The visual editor remains the primary way to compose pipelines. To open it:
- Open the FlightStack app
- Pick a repository
- Go to Pipelines
- Drag jobs onto the canvas, wire them together
The graph round-trips to YAML — what you export with the editor lints clean with the command above, and what you commit to your repo will load in the editor.
See Pipeline Editor for the full picture, or the
Variables doc for how ${{ steps.X.outputs.Y }} flows between
jobs.
Next steps
Section titled “Next steps”- CLI Repository commands to connect repos before authoring pipelines
- Pipeline Editor for visual authoring
- Variables & step outputs for wiring jobs together