# komrad gitlab config

Print the glab config a checkout's GitLab is reached with

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

```bash
komrad gitlab config [flags]
```

Print the glab config a checkout's GitLab is reached with, as glab's config.yml.

The stand-in komrad puts ahead of an agent's PATH as glab runs this for every call. --checkout names the tree it was run in, whose origin says which host to answer for. The config names that host alone, so glab hands the token to no other host. --if-configured prints nothing and succeeds when the origin is not on a connected GitLab host, which leaves glab the credential the machine was logged in with.

## Flags

| Flag | Type | Description |
| --- | --- | --- |
| [`--checkout`](https://komrad.dev/latest/cli/gitlab/config.md#flag-checkout) | string | the checkout whose origin names the gitlab host default . |
| [`--if-configured`](https://komrad.dev/latest/cli/gitlab/config.md#flag-if-configured) | bool | print nothing and succeed when the host has no gitlab connection |

## Inherited flags

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