Skip to content
You are reading GoQuorum development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.

Override configuration file settings on the command line

The -o, --override option is used to define overrides as key/value pairs. The key is the JSON path of the field to be overwritten.

For example, given configfile.json:

{
    ...,
    "jdbc" : {
        "username" : "sa",
        "password" : "",
        "url" : "jdbc:h2:/path/to/db1;MODE=Oracle;TRACE_LEVEL_SYSTEM_OUT=0",
        "autoCreateTables" : true,
        "fetchSize" : 0
    },
    "peer" : [
        {
            "url" : "http://127.0.0.1:9001"
        }
    ]
}

The command:

tessera --configfile configfile.json -o jdbc.username=username-override --override peer[1].url=http://peer-override:9001

Starts Tessera with the following effective configuration:

{
    ...,
    "jdbc" : {
        "username" : "username-override",
        "password" : "",
        "url" : "jdbc:h2:/path/to/db1;MODE=Oracle;TRACE_LEVEL_SYSTEM_OUT=0",
        "autoCreateTables" : true,
        "fetchSize" : 0
    },
    "peer" : [
        {
            "url" : "http://127.0.0.1:9001"
        },
        {
            "url" : "http://peer-override:9001"
        }
    ]
}
ConsenSys has acquired Quorum from J.P. Morgan. Please read the FAQ.
Questions or feedback? You can discuss issues and obtain free support on Tessera Slack channel.
For paid professional support by ConsenSys, contact us at quorum@consensys.net