GitLab capability
List pipelines in a GitLab project
Use the Pipelines API for filtered history and pagination. Use glab ci list when you want the project’s pipelines in the terminal.
Documentation reviewed
Ways to do it
API
GET /projects/{id}/pipelines
Return project pipelines with filters for ref, source, status, or update time.
- Requirements
- Project ID or URL-encoded path and GitLab API read access.
- Limitations
- Child pipelines are excluded by default. Set source=parent_pipeline to request them.
CLI
glab ci list
List project pipelines from a checkout or use --repo to select the project. Add --status to filter the results.
- Requirements
- glab authenticated for the GitLab host and access to the project.
- Limitations
- Results are paged. Use --page and --per-page to inspect older results.
Example
glab ci list --repo "$PROJECT_PATH" --status failed --per-page 20