sincecutoff.com
← all changes

glab artifact-registry login accepts --config-file for Maven and sbt

Introduced 2026-10-27 · score 0.92

HOW TO USE IT

When authenticating Maven or sbt against an Artifact Registry, pass `--config-file <file>` to `glab artifact-registry login` to write credentials to that file.

glab artifact-registry login --maven --registry <registry-url> --config-file <settings.xml>
glab artifact-registry login --sbt --registry <registry-url> --config-file <credentials.sbt>

WHY THIS HELPS

Authenticate Maven or sbt to the artifact registry using a selected configuration file.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.125.0
  • --config-file <file>: File to write; for sbt, must be a `.sbt` file loaded by sbt.
  • --maven / --sbt (required): Select the package manager to configure.
  • --registry <url> (required): Artifact Registry URL to authenticate against.
  • Prerequisite: Install GitLab CLI version 1.115.0 or later.
  • Prerequisite: Authenticate `glab`; Maven and sbt login use `GITLAB_TOKEN` when set, otherwise stored credentials.
  • Applies to Maven and sbt.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card