clc set
Set commands are a group of set operations.
Usage:
clc set [command] [flags]
clc set clear
Deletes all entries of a set.
Usage:
clc set clear [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the set. |
|
|
Optional |
Skip confirming the destroy operation. |
|
Example:
clc set clear --name my-set
clc set add
Adds values to the given set.
Usage:
clc set add [values] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the set. |
|
|
Optional |
Data type of the value. One of: |
string |
Example:
clc set add 1 2 3 4 --name my-set
clc set get-all
List all values in the given set.
Usage:
clc set get-all [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the set. |
|
Example:
clc set get-all --name my-set
clc set remove
Removes values from the given set.
Usage:
clc set remove [values] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the set. |
|
|
Optional |
Data type of the value. One of: |
string |
Example:
clc set remove 1 2 3 4 --name my-set
clc set size
Returns the size of the given set.
Usage:
clc set size [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the set. |
|
Example:
clc set size --name my-set
clc set destroy
Destroys a set. This command will delete the set and the data in it will not be available anymore.
Usage:
clc set destroy [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the set. |
|
|
Optional |
Skip confirming the destroy operation. |
|
Example:
clc set destroy --name my-set