Hello,
As far as I know, the commands "set spantree channelcost" and "set spantree channelvlancost" are used to compute and set automatically the portcost and the portvlancost for each channel members. These commands are more a sort of macro than real commands. They will never appear in the config.
Before using the "set spantree channelvlancost" command, you need to configure the preferred vlans with the command "set spantree portvlancost [preferred_vlans]"
I dont know the command "set channel cost".
And yes, you can use the commands "set spantree portcost" and "set spantree portvlancost" but then you'll need to compute the aggregated cost manually.
I hope it helps.
Regards,
Christophe