login to ibmcloud login --sso select the appropriate org target the appropriate resource ibmcloud target -g sudesh-resource target the function project : ibmcloud ce project select -n watsonx-functions < For new ones Create a repo in git clone it to your local system add a folder inside>
- build the python file make sure u have requirements.txt for the import statement . 1a) The function should work on your machine. Otherwise you have to debug and fix on your machine before you create a cloud function
- push all the changes try and run the function
- ibmcloud ce fn create -n telljoke -runtime python-3.11 --build-source github_url
- You can either curl OR see on cloud dashboard
- if there are any issues you have to use the debug of the function