clc cpmap
CPMap commands are a group of CPMap operations.
Usage:
clc cpmap [command] [flags]
Commands
- clc cpmap compare-and-set
- clc cpmap delete
- clc cpmap destroy
- clc cpmap get
- clc cpmap put
- clc cpmap remove
- clc cpmap set
clc cpmap compare-and-set
Sets the value for the given key if it has the expected value.
Usage:
clc cpmap compare-and-set [key] [expected-value] [new-value] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the map. | default |
key | Required | Key of the map entry. | N/A |
expected- | Required | Value to set for the key. | N/A |
new- | Required | Value to set for the key. | N/A |
--key- | Optional | Data type of the key. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
--value- | Optional | Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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 cpmap get
Gets a value from the given CPMap.
Usage:
clc cpmap get [key] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the CPMap. | default |
key | Required | Key of the CPMap entry. | N/A |
--key- | Optional | Data type of the key. One of: string, bool, json, i8, i16, i32, i64, f32, f64. | string |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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:
clc cpmap get -n yearbook -k i16 2012
clc cpmap set
Sets a value in the given CPMap.
Usage:
clc cpmap set [key] [value] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the CPMap. | default |
key | Required | Key of the CPMap entry. | N/A |
value, | Required | Value to set for the key. | N/A |
--key- | Optional | Data type of the key. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
--value- | Optional | Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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:
clc cpmap -n my-cpmap set -k string hello -v f32 19.94
clc cpmap put
Puts the given value in the given CPMap and returns the old value.
Usage:
clc cpmap put [key] [value] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the CPMap. | default |
key | Required | Key of the CPMap entry. | N/A |
value, | Required | Value to set for the key. | N/A |
--key- | Optional | Data type of the key. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
--value- | Optional | Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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:
clc cpmap -n my-cpmap put -k string hello -v f32 19.94
clc cpmap remove
Removes the value of a given key in a CPMap and returns the old value.
Usage:
clc cpmap remove [flags] [key]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the map. | default |
key | Required | Key of the map entry. | N/A |
--key- | Optional | Data type of the key. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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:
clc cpmap remove --name my-cpmap --key-type string k1
k1
clc cpmap delete
Deletes the value of a given key in a CPMap.
Usage:
clc cpmap delete [flags] [key]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the map. | default |
key | Required | Key of the map entry. | N/A |
--key- | Optional | Data type of the key. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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:
clc cpmap delete --name my-cpmap --key-type string k1
k1
clc cpmap destroy
Deletes the CPMap and all the data in it.
Usage:
clc cpmap destroy [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the map. | default |
--yes | Optional | Skip confirming the destroy operation. | false |
Global parameters
| Parameter | Description | Default |
|---|---|---|
--config, -c | Name of the configuration or path to the configuration file in YAML format. | The following locations are tried in order for the existence of
|
--format, -f | Set the output format
|
|
--log. | Set the log level, one of:
| info |
--log. | Set the log path. Use stderr to log to the screen (stderr). | $CLC_ |
--quiet, -q | Prevent displaying unnecessary output. | false |
--verbose | Enable output with more information. | false |
--timeout | 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:
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. |