clc config

Configuration operations.

Usage:

clc config [command] [options]

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] [key=value...]

Parameters:

Parameter Required Description Default

target

Required

Name of the configuration or its path. If a name is used, the configuration is saved to $CLC_HOME/configs/NAME

N/A

key=value

Optional

Zero or more config_item=value pairs.

N/A

Example output:

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

clc config import

Imports configuration from an arbitrary source.

Usage:

clc config import [target] [source]

Parameters:

Parameter Required Description Default

target

Required

Name of the configuration or its path. If a name is used, the configuration is saved to $CLC_HOME/configs/NAME

N/A

source

Required

The following configuration sources are supported:

  • Zip file for the Viridian Go client, e.g., hazelcast-cloud-go-sample-client-pr-3814-default.zip. Use this if you have downloaded the sample yourself.

  • cURL command line for the Viridian Go client sample, such as: curl https://api.viridian.hazelcast.com/client_samples/download/XXX -o hazelcast-cloud-go-sample-client-pr-3814-default.zip. Use this command to allow the Hazelcast CLC to download the sample. Do not forget to wrap the line with quotes.

N/A

Example output:

clc config import production ~/Downloads/hazelcast-cloud-go-sample-client-pr-3814-default.zip

clc config list

Lists the known configurations.

Usage:

clc config list

Example output:

clc config list
default
production