Enable trial licence by cmd

HI
From the guide we can know how to enable trial licence or import licence.

But we need to deploy the cluster by script to realize auto-deploy, so we can't enable it by login kibana, can you tell me is there way to enable it?

Thank you Timv