---
name: "gbp-config"
section: "1"
platform: "linux"
package: "git-buildpackage"
version: "0.9.38"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gbp-config"
---

# gbp-config(1)

Query configuration values

## NAME

gbp-config - Query configuration values

## SYNOPSIS

FC**gbp config**F\[0\]  \[FC**--version**F\[0\]\] \[FC**--help**F\[0\]\] \[FC**--verbose**F\[0\]\] \[FC**--color=**F\[0\]\[auto\|on\|off\]\] \[FC**--color-scheme=**F\[0\] *COLOR\_SCHEME*\] {*command.option* \| *command*}

## DESCRIPTION

**gbp config** prints values from the configuration files. It interpolates the value for *option* of *command*.

## OPTIONS

- FC**--version**F\[0\]

  Print version of the program, i.e. version of the git-buildpackage suite

- FC**-v**F\[0\], FC**--verbose**F\[0\]

  Verbose execution

- FC**-h**F\[0\], FC**--help**F\[0\]

  Print help and exit

- FC**--color=**F\[0\]\[auto\|on\|off\]

  Whether to use colored output.

- FC**--color-scheme=**F\[0\]*COLOR\_SCHEME*

  Colors to use in output (when color is enabled). The format for COLOR\_SCHEME is '\<debug\>:\<info\>:\<warning\>:\<error\>'. Numerical values and color names are accepted, empty fields imply the default color. For example, FC**--git-color-scheme=**F\[0\]FC'cyan:34::'F\[0\] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

## EXIT CODES

When **gbp config** finishes, it indicates success or failure with its exit code:

- FC**0**F\[0\]

  Success.

- FC**1**F\[0\]

  Failed to parse command line

- FC**2**F\[0\]

  The value did not exist

## EXAMPLES

Print the value FC**upstream-branch**F\[0\] that **gbp buildpackage** would use:

```
FC
    $ gbp config buildpackage.upstream-branch
    buildpackage.upstream-branch=upstreamF[0]
```

Print the values of all of **gbp buildpackage** options

```
FC
    $ gbp config buildpackage
    buildpackage.upstream-branch=upstream
    buildpackage.debian-branch=master
    ...F[0]
```

## CONFIGURATION FILES

Several FC*gbp.conf*F\[0\] files are parsed  to set defaults for the above command-line arguments. See the [**gbp.conf**(5)](/gbp.conf/5.md) manpage for details.

## SEE ALSO

[**gbp.conf**(5)](/gbp.conf/5.md)

## AUTHOR

Guido Günther \<FCagx@sigxcpu.orgF\[0\]\>
