Skip to main content
Version: 5.7.1

clc config

Configuration operations.

Usage:

bash
clc config [command] [flags]

Commands​

clc config add​

Adds a named configuration with the given values. Specify the configurations as KEY=VALUE pairs.

It overwrites the previous configuration if it exists.

Usage:

bash
clc config add [target] [source] [flags] [key=value...]

You can pass key=value pairs to add configuration items.

Configuration keys
KeyValueDefault ValueNote
cluster.nameAny stringdev
cluster.addressHOST:PORT / HOST / :PORTlocalhost:5701
cluster.userAny stringHazelcast Enterprise only
cluster.passwordAny stringHazelcast Enterprise only
cluster.discovery-tokenAny stringCloud only
ssl.enabledtrue / falsefalseCloud or Hazelcast Enterprise
ssl.serverDOMAIN_NAME (must match SSL certificate)Cloud (automatically set) or Hazelcast Enterprise
ssl.skip-verifytrue / falsefalseCloud or Hazelcast Enterprise. Disables SSL host name and client-side verification. Never set to true in production.
ssl.ca-pathAn absolute or relative pathCloud or Hazelcast Enterprise. Sets the path to the CA certificate.
ssl.key-pathAn absolute or relative pathCloud or Hazelcast Enterprise. Sets the path to the certificate key.
ssl.key-passwordAny stringCloud or Hazelcast Enterprise. Sets the password for the certificate key.
log.pathAn absolute or relative path or stderr to log to stderr.$CLC_HOME/logs/YYYY-MM-DD.log where YYY-MM-DD is the date on which the log was created.
log.level

One of:

  1. error
  2. warn
  3. info
  4. debug
infoLog level filter
Global parameters
ParameterDescriptionDefault
--config, -cName of the configuration or path to the configuration file in YAML format.

The following locations are tried in order for the existence of config.yaml

  1. Current working directory
  2. The parent directory of the clc executable
  3. $CLC_HOME/default directory
--format, -f

Set the output format

  • csv
  • delimited: By tab characters
  • json
  • table
  • Interactive mode: table
  • Non-interactive mode: delimited
--log.level

Set the log level, one of:

  • debug
  • info
  • warning
  • error
info
--log.pathSet the log path. Use stderr to log to the screen (stderr).$CLC_HOME/logs/YYYY-MM-DD.log where YYYY-MM-DD is today’s date.
--quiet, -qPrevent displaying unnecessary output.false
--verboseEnable output with more information.false
--timeout

Timeout for operation to complete.

The duration is a string in the form of AMOUNTunit where AMOUNT is an integer, and unit is one of the following:

  • ms: milliseconds
  • s: seconds
  • m: minutes
  • h: hours

Underscore (_) character is ignored in the AMOUNT. unit is optional and defaults to s if not specified.

The following are a few of the valid DURATIONs:

  • 5: 5 seconds
  • 5s: 5 seconds
  • 10000ms: 10000 milliseconds
  • 10_000_000ms: 10000000 milliseconds
warning

This is a client-side timeout, the operation you started maybe in progress on the server-side even if the given timeout is exceeded.

Example output:

bash
clc config add dev cluster.name=dev cluster.address=localhost:5701

clc config import-cloud​

Imports configuration from a Cloud CLI sample.

To get the URL for Cloud, follow the steps below:

  1. Open the Cloud console, and select Dashboard → Connect Client → CLI

  2. Copy the URL from the second step of the on-screen instructions, and pass it as the second parameter. Ensure that the URL is enclosed in quotation marks, then run:

    bash
    clc config import-cloud my-config "URL copied from console"
Global parameters
ParameterDescriptionDefault
--config, -cName of the configuration or path to the configuration file in YAML format.

The following locations are tried in order for the existence of config.yaml

  1. Current working directory
  2. The parent directory of the clc executable
  3. $CLC_HOME/default directory
--format, -f

Set the output format

  • csv
  • delimited: By tab characters
  • json
  • table
  • Interactive mode: table
  • Non-interactive mode: delimited
--log.level

Set the log level, one of:

  • debug
  • info
  • warning
  • error
info
--log.pathSet the log path. Use stderr to log to the screen (stderr).$CLC_HOME/logs/YYYY-MM-DD.log where YYYY-MM-DD is today’s date.
--quiet, -qPrevent displaying unnecessary output.false
--verboseEnable output with more information.false
--timeout

Timeout for operation to complete.

The duration is a string in the form of AMOUNTunit where AMOUNT is an integer, and unit is one of the following:

  • ms: milliseconds
  • s: seconds
  • m: minutes
  • h: hours

Underscore (_) character is ignored in the AMOUNT. unit is optional and defaults to s if not specified.

The following are a few of the valid DURATIONs:

  • 5: 5 seconds
  • 5s: 5 seconds
  • 10000ms: 10000 milliseconds
  • 10_000_000ms: 10000000 milliseconds
warning

This is a client-side timeout, the operation you started maybe in progress on the server-side even if the given timeout is exceeded.

clc config import-java​

This command imports a subset of Hazelcast Java client configuration and saves it as CLC configuration.

Limitations​

Only PKCS12 keystores/truststores are supported.

The following are not supported:

  • <import> and <config-replacers> tags
  • Variables in .xml configuration

Java KeyStore​

If the Java client configuration refers to a Java keystore, the key and certificate in the keystore are imported as key.pem and cert.pem files respectively. The keystore must contain one key and one certificate.

Java TrustStore​

If the Java client configuration refers to a Java truststore, certificates in the truststore are imported as the ca.pem file. The truststore must contain only certificates.

Configuration Keys​

You can pass key=value pairs to override configuration options.

Configuration keys
KeyValueDefault ValueNote
cluster.nameAny stringdev
cluster.addressHOST:PORT / HOST / :PORTlocalhost:5701
cluster.userAny stringHazelcast Enterprise only
cluster.passwordAny stringHazelcast Enterprise only
cluster.discovery-tokenAny stringCloud only
ssl.enabledtrue / falsefalseCloud or Hazelcast Enterprise
ssl.serverDOMAIN_NAME (must match SSL certificate)Cloud (automatically set) or Hazelcast Enterprise
ssl.skip-verifytrue / falsefalseCloud or Hazelcast Enterprise. Disables SSL host name and client-side verification. Never set to true in production.
ssl.ca-pathAn absolute or relative pathCloud or Hazelcast Enterprise. Sets the path to the CA certificate.
ssl.key-pathAn absolute or relative pathCloud or Hazelcast Enterprise. Sets the path to the certificate key.
ssl.key-passwordAny stringCloud or Hazelcast Enterprise. Sets the password for the certificate key.
log.pathAn absolute or relative path or stderr to log to stderr.$CLC_HOME/logs/YYYY-MM-DD.log where YYY-MM-DD is the date on which the log was created.
log.level

One of:

  1. error
  2. warn
  3. info
  4. debug
infoLog level filter

Usage:

bash
clc config import-java [target] [source] [flags] [key=value...]

Parameters:

ParameterRequiredDescriptionDefault
targetRequiredName or path to the configuration to create
sourceRequiredPath to the Java client XML configuration
Global parameters
ParameterDescriptionDefault
--config, -cName of the configuration or path to the configuration file in YAML format.

The following locations are tried in order for the existence of config.yaml

  1. Current working directory
  2. The parent directory of the clc executable
  3. $CLC_HOME/default directory
--format, -f

Set the output format

  • csv
  • delimited: By tab characters
  • json
  • table
  • Interactive mode: table
  • Non-interactive mode: delimited
--log.level

Set the log level, one of:

  • debug
  • info
  • warning
  • error
info
--log.pathSet the log path. Use stderr to log to the screen (stderr).$CLC_HOME/logs/YYYY-MM-DD.log where YYYY-MM-DD is today’s date.
--quiet, -qPrevent displaying unnecessary output.false
--verboseEnable output with more information.false
--timeout

Timeout for operation to complete.

The duration is a string in the form of AMOUNTunit where AMOUNT is an integer, and unit is one of the following:

  • ms: milliseconds
  • s: seconds
  • m: minutes
  • h: hours

Underscore (_) character is ignored in the AMOUNT. unit is optional and defaults to s if not specified.

The following are a few of the valid DURATIONs:

  • 5: 5 seconds
  • 5s: 5 seconds
  • 10000ms: 10000 milliseconds
  • 10_000_000ms: 10000000 milliseconds
warning

This is a client-side timeout, the operation you started maybe in progress on the server-side even if the given timeout is exceeded.

clc config list​

Lists the known configurations.

A known configuration is a directory at $CLC_HOME/configs that contains config.yaml. Directory names which start with dot (.) or underscore (_) are ignored.

Usage:

bash
clc config list [flags]

Example output:

bash
clc config list
default
production