---
name: "sb2-config"
section: "1"
platform: "linux"
package: "scratchbox2"
version: "2.2.4-1debian1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/sb2-config"
---

# sb2-config(1)

scratchbox2 configuration tool

## NAME

sb2-config - scratchbox2 configuration tool

## SYNOPSIS

**sb2-config \[OPTION\]... \[COMMAND \[PARAMS\]\]**

## DESCRIPTION

**sb2-config** is used to set and display configuration of existing targets.

## OPTIONS

- \-d default\_target

  This option sets the default sb2 target. The name of the target will be written to your $HOME/.scratchbox2/config file.

- \-l

  lists all available targets in your system. The names listed can be used as a parameter to the -d option.

- \-h

  Display short help.

- \-v

  Show version of this tool.

- \-t target

  select target to be used with commands (below)

## COMMANDS

- showtarget

  show default target.

- showlog

  show configuration log

- showenv

  show target-specific environment variables

- setenv VARIABLE VALUE

  set target-specific environment variable. The value becomes effective when *sb2* is executed.

- clearenv VARIABLE

  set clearing for target-specific environment variable

- unsetenv VARIABLE

  remove target-specific environment variable

## EXAMPLES

```
$ sb2-config -d diablo41_armel
This command sets your default target to be diablo41_armel.
$ sb2-config -l
This example lists all installed targets in your host. The names listed can be used as a parameter to the -d option.
```

## SEE ALSO

[**sb2**(1)](/sb2/1.md), [**sb2-init**(1)](/sb2-init/1.md), [**sb2-show**(1)](/sb2-show/1.md)

## AUTHOR

```
Lauri Leukkunen
```
