LinuxCommandLibrary

glab-pipeline

Manage GitLab CI/CD pipelines

TLDR

View a running pipeline on the current branch

$ glab pipeline status
copy

View a running pipeline on a specific branch
$ glab pipeline status --branch [branch_name]
copy

Get the list of pipelines
$ glab pipeline list
copy

Run a manual pipeline on the current branch
$ glab pipeline run
copy

Run a manual pipeline on a specific branch
$ glab pipeline run --branch [branch_name]
copy

SYNOPSIS

glab pipeline [flags]

PARAMETERS

list
    List pipelines.

show
    Show a specific pipeline.

create
    Create a new pipeline.

trigger
    Trigger a new pipeline.

retry
    Retry a specific pipeline.

cancel
    Cancel a specific pipeline.

delete
    Delete a specific pipeline.

variables
    View pipeline variables.

--help
    Show help for pipeline commands.

DESCRIPTION

The `glab pipeline` command provides a way to interact with GitLab CI/CD pipelines directly from your terminal. It allows users to view, trigger, retry, cancel, and perform various other actions on pipelines within GitLab projects. This is particularly useful for developers who want to quickly monitor pipeline status, debug failures, or manually trigger deployments without having to switch to the GitLab web interface. It simplifies pipeline management by providing a command-line interface to GitLab's CI/CD features. With `glab pipeline`, you can streamline your workflow and improve your overall development experience by providing a convenient way to monitor and manage your CI/CD processes.

CAVEATS

Requires `glab` to be configured with a valid GitLab access token.

AUTHENTICATION

Before using `glab pipeline`, you must authenticate with your GitLab instance. This is typically done using the `glab auth login` command.

CONFIGURATION

You should configure `glab` to point to the correct GitLab instance and project. Use `glab config` to modify the settings.

EXAMPLES

List pipelines
glab pipeline list
Show pipeline with id 22
glab pipeline show 22

HISTORY

The `glab pipeline` command is part of the `glab` CLI tool, which is a community-supported GitLab CLI. It was developed to provide a more efficient and convenient way for developers to interact with GitLab features from the command line. The command has evolved with GitLab's CI/CD features, adding support for new actions and improving existing functionality.

SEE ALSO

glab(1), glab ci(1)

Copied to clipboard