GitLab Release CLI tool

The release-cli is in maintenance mode.

The release-cli does not accept new features. All new feature development happens in the glab CLI, so you should use the glab CLI whenever possible. You can use the feedback issue to share any comments.

Switch from release-cli to glab CLI

release_job:
  stage: release
  image: registry.gitlab.com/gitlab-org/cli:latest
  rules:
    - if: $CI_COMMIT_TAG
  script:
    - echo "Running the release job."
  release:
    tag_name: $CI_COMMIT_TAG
    name: 'Release $CI_COMMIT_TAG'
    description: 'Release created using the cli.'

Fall back to release-cli

{{< history >}}

{{< /history >}}

{{< alert type=”flag” >}}

The availability of this feature is controlled by a feature flag. For more information, see the history.

{{< /alert >}}

CI/CD jobs that use the release keyword use a script that falls back to using release-cli if the required glab version is not available on the runner. The fallback logic is a safe-guard to ensure that projects that have not yet migrated to use glab CLI can continue working.

This fallback is scheduled to be removed in GitLab 19.0 with the removal of release-cli.