Here you go:
First, how does the CSV file is organized? The first row (the header) is a comma separated list of fields names, same as they appear in the specific command's parameters - please copy paste from the command refs to avoid typos.
Then, all the following rows just contain list of comma separated values.
In the case of list values, you should use the notation as Eugene Grybinnyk mentioned above. Let's take an example of add-host command:
In the header row you put the list fields names as follows -
groups.1,groups.2,etc
In the values rows, at the appropriate columns you put the corresponding values -
my_grp1,my_grp2,etc
BTW, you do not have to provide values to these fields in all values rows, as there may be hosts without groups...
Full example:
name,ip-address,color,groups.1,groups.2
h1,1.1.1.1,red,my_grp1,my_grp2
h2,2.2.2.2,yellow,my_grp1,my_grp2
h3,3.3.3.3,black,my_grp1,
h4,4.4.4.4,orange,,
On the second hand, when you want to modify existing host objects (set-host command), sometimes you wish to add values to the list, or sometimes reset or remove the values. In this case you shoud use "add" or "remove" keywords. For a complete samples, take a look at the examples section of this command -
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-vpn-community-star~v1.1%20
Hope this helps.
Robert.