clc config
Configuration operations.
Usage:
clc config [command] [flags]
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:
clc config add [target] [source] [flags] [key=value...]
You can pass key=value pairs to add configuration items.
Configuration keys
Key | Value | Default Value | Note |
---|---|---|---|
|
Any string |
dev |
|
|
HOST:PORT / HOST / :PORT |
localhost:5701 |
|
|
Any string |
Hazelcast Enterprise only |
|
|
Any string |
Hazelcast Enterprise only |
|
|
Any string |
Cloud only |
|
|
true / false |
false |
Cloud or Hazelcast Enterprise |
|
DOMAIN_NAME (must match SSL certificate) |
Cloud (automatically set) or Hazelcast Enterprise |
|
|
true / false |
false |
Cloud or Hazelcast Enterprise. Disables SSL host name and client-side verification. Never set to true in production. |
|
An absolute or relative path |
Cloud or Hazelcast Enterprise. Sets the path to the CA certificate. |
|
|
An absolute or relative path |
Cloud or Hazelcast Enterprise. Sets the path to the certificate key. |
|
|
Any string |
Cloud or Hazelcast Enterprise. Sets the password for the certificate key. |
|
|
An absolute or relative path or |
|
|
|
One of:
|
|
Log level filter |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
Example output:
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:
-
Open the Cloud console, and select Dashboard → Connect Client → CLI
-
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:
clc config import-cloud my-config "URL copied from console"
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
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
Key | Value | Default Value | Note |
---|---|---|---|
|
Any string |
dev |
|
|
HOST:PORT / HOST / :PORT |
localhost:5701 |
|
|
Any string |
Hazelcast Enterprise only |
|
|
Any string |
Hazelcast Enterprise only |
|
|
Any string |
Cloud only |
|
|
true / false |
false |
Cloud or Hazelcast Enterprise |
|
DOMAIN_NAME (must match SSL certificate) |
Cloud (automatically set) or Hazelcast Enterprise |
|
|
true / false |
false |
Cloud or Hazelcast Enterprise. Disables SSL host name and client-side verification. Never set to true in production. |
|
An absolute or relative path |
Cloud or Hazelcast Enterprise. Sets the path to the CA certificate. |
|
|
An absolute or relative path |
Cloud or Hazelcast Enterprise. Sets the path to the certificate key. |
|
|
Any string |
Cloud or Hazelcast Enterprise. Sets the password for the certificate key. |
|
|
An absolute or relative path or |
|
|
|
One of:
|
|
Log level filter |
Usage:
clc config import-java [target] [source] [flags] [key=value...]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
|
Name or path to the configuration to create |
|
|
|
Path to the Java client XML configuration |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|