Assumed you have defined your function like this.
exports.yourfunction = functions.https.onRequest(async (req, res) => {
functions.logger.info("Hello logs!", { structuredData: true });
});
Deploy your function to google cloud with command: firebase deploy –only functions:function_name
firebase deploy --only functions:yourfunction
You should see the completed deploy result like this.
=== Deploying to 'xxxxxxxx'...
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
✔ functions: required API cloudbuild.googleapis.com is enabled
✔ functions: required API cloudfunctions.googleapis.com is enabled
...
✔ functions[yourfunction(us-central1)]: Successful update operation.
✔ Deploy complete!