# komrad gitlab credential

Answer git's credential helper protocol with a GitLab connection's token

[komrad gitlab](https://komrad.dev/latest/cli/gitlab.md)

```bash
komrad gitlab credential
```

Answer git when it asks for a password.

Git runs this and describes what it wants to reach. This answers only for https to a host connected as a GitLab forge with a token. Anything else gets no answer, so git falls back to whatever else the account has configured.

Set it up for each GitLab host with:

```
git config --global credential.https://gitlab.com.helper '!komrad gitlab credential'
```

## Inherited flags

| Flag | Type | Description |
| --- | --- | --- |
| [`--config`](https://komrad.dev/latest/cli/gitlab/credential.md#inherited-config) | stringArray | path to a config TOML, repeatable, later files win over earlier ones |
| [`--engine`](https://komrad.dev/latest/cli/gitlab/credential.md#inherited-engine) | string | engine to reach: local for this machine, or a file in the config's engines directory, layered over the config |
