# sinch config

Manage CLI configuration and credential profiles. Configuration is stored in `~/.sinch/config.json`. Profile-specific credentials are stored in the OS keychain.

## sinch config set

Set a configuration value.


```sh
sinch config set <key=value>
sinch config set fax <key=value>
```

Valid fax config keys: `serviceID` (alias: `service-id`), `senderNumber` (alias: `sender-number`).

## sinch config get

Read a configuration value.


```sh
sinch config get <key>
sinch config get fax <key>
```

## sinch config list

Show all current configuration values for the active profile.


```sh
sinch config list
```

## sinch config profile

Manage credential profiles for working across multiple Sinch projects. Each profile stores its own credentials in the keychain.

### sinch config profile list


```sh
sinch config profile list
```

### sinch config profile create


```sh
sinch config profile create <name>
```

### sinch config profile use


```sh
sinch config profile use <name>
```

### sinch config profile delete


```sh
sinch config profile delete <name>
```

## sinch health

Check connectivity to the SinchFunctions API.


```sh
sinch health
```

## sinch completion

Generate shell completion scripts for tab completion.


```sh
sinch completion [options]
```

| Option | Description |
|  --- | --- |
| `--shell <shell>` | Shell type: `powershell`, `bash`, or `zsh` (auto-detected if omitted) |
| `--install` | Force reinstall completion into the current shell's profile |


Completions install automatically on `npm install -g @sinch/cli`. To force reinstall or print the script:


```sh
sinch completion --install           # Reinstall into shell profile
sinch completion --shell bash        # Print bash completion to stdout
sinch completion --shell powershell  # Print PowerShell completion to stdout
```