Function is not a subcommand

i am trying to create a function like this " serverless create function -f new createUser --handler src/functions/createUser.createUser --path src/tests" and this is what i am getting" “function” is not a valid sub command. Run “serverless create” to see a more helpful error message for this command." what could be possible reason