Update Lucee Extensions via Script

Hi all

Is there a way to update the lucee extensions via script ?
I know about the way to install new extensions via the deploy dir,
But how can i do an update ?

We need this for cloud usage in a chef environement.