How do I add list in a config file instead of option in Luci using CBI?

how can i add list in the place of option.

istead of this :

config mysection 'foo'
option key1 'abc'
option key2 'def'

i want this configuration :

config mysection 'foo'
list key1 'abc'
option key2 'def'

StaticList or DynamicList are the CBI types that you are looking.

CBI options are documented in