It is assumed that you already have OpenFaas installed and you're logged in with faas-cli
git clone https://github.com/utsavanand2/faasnode12.git
cd openfaasfn
faas-cli template pull https://github.com/openfaas/templates
faas-cli new --list
faas-cli new <YOUR_FUNC_NAME> --lang node12 --append ./stack.yml
Note: Make sure you prefix the image fileld in the function property with the appropriate tag for pushing to a repo
faas-cli up -f ./stack.yml