I could not find an option to set a session name and description from the publish command. It is possible to set the session-name and description prior to publish.
mgmt_cli -s sid.txt set-session description "description goes here" new-name "sessionname"
mgmt_cli -s sid.txt publish
Example:
[Expert@vmgmt01:0]# mgmt_cli -r true login > session.id
[Expert@vmgmt01:0]# mgmt_cli -s session.id show session -f json | jq -r .description
[Expert@vmgmt01:0]# mgmt_cli -s session.id show session -f json | jq -r .name
null
[Expert@vmgmt01:0]# mgmt_cli -s session.id set-session description "new description" new-name "new-sessionname"
[Expert@vmgmt01:0]# mgmt_cli -s session.id show session -f json | jq -r .name
new-sessionname
[Expert@vmgmt01:0]# mgmt_cli -s session.id show session -f json | jq -r .description
new description
[Expert@vmgmt01:0]# mgmt_cli -s session.id publish
More Information:
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-session~v1.5%20