Upload new moralis cloud code

How can I upload new cloud function code on moralis?

you will have to user moralis-admin-cli

https://v1docs.moralis.io/moralis-dapp/cloud-code/cloud-functions#ide-setup

This only gets the logs of the code
moralis-admin-cli get-logs --moralisApiKey MORALIS_CLI_API_KEY --moralisApiSecret MORALIS_CLI_SECRET_KEY

I am saying - How to upload the cloud code so that it could run on new events?

there is an example:

moralis-admin-cli has more possible parameters