I'm trying to deploy multiple grouped cloud functions at once with the following command
firebase deploy --only functions:groupName.functionName,functions:groupName.anotherFunctionName
However it is simply skipping the deployment of these functions. If I deploy them individually like so
firebase deploy --only functions:groupName.functionName
and firebase deploy --only functions:groupName.anotherFunctionName
one after the other they are being deployed. I would like to be able to do it in a single command.
Am I missing something or is this functionality simply not built in yet?
EDIT
I also tried the following command with the same result:
firebase deploy --only functions:groupName.functionName,groupName.anotherFunctionName
EDIT
Maybe there is something different about the way our functions are declared in the functions/index.ts
:
exports.authentication = require('./authentication')
and in functions/authentication.ts
:
exports.createCustomToken = functions
.region('europe-west1')
.https
.onCall(async (data: any, context: any) => {/*...*/})
exports.anotherFunction= functions
.region('europe-west1')
.https
.onCall(async (data: any, context: any) => {/*...*/})
which would lead to the command
firebase deploy --only functions:authentication.createCustomToken,authentication.anotherFunction