

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 設定ファイル
<a name="configuration-file"></a>

設定ファイルは、いくつかの設定オプションと認証情報を指定するための 3 つ目の方法です。デフォルトでは、`/conf/dcvsmcli.conf` の zip ファイルに入っています。

ユーザーはコマンドラインで設定ファイルのパスを指定できます。ユーザーが明示的に設定ファイルを指定しない場合、オペレーティングシステムに応じて、デフォルト設定により特定フォルダから読み取られます。
+ Unix ベースのシステム: `$XDG_CONFIG_HOME/dcvsmcli.conf`
+ Windows システム: `%UserProfile%\dcvsmcli.conf`

設定ファイルが見つからない場合、CLI で、zip ファイルとともに提供されたパス `/conf/dcvsmcli.conf` からファイルが読み取られます。設定ファイルは次のような構造になっています。

```
[output]
# The formatting style for command output.
output-format = json

# Turn on debug logging
debug = true

[security]
# Disable SSL certificates verification.
no-verify-ssl = true

# CA certificate bundle to use when verifying SSL certificates.
ca-bundle = ca-bundle.pem

[authentication]
# hostname of the authentication server used to request the token
auth-server-url = https://broker-host:broker-port/oauth2/token?grant_type=client_credentials

# The client ID
client-id = username

# The client password
client-password = password

[broker]
# hostname or IP of the broker
url = https://broker-host:broker-port
```