functions and admin are for the functions project, same folder containing package.json
npm install firebase-functions@latest firebase-admin@latest --save
firebase-tools is the cli and should be global with sudo
npm install -g firebase-tools
Deploy current
firebase deploy --only functions:FUNCTION_NAME
Delete
firebase functions:delete FUNCTION_NAME
Deploy group
firebase deploy --only functions:ONE_FUNCTION,functions:TWO_FUNCTION
Change enviroment
firebase use ENV_NAME
Define the ENV_NAME
on `.firebaseserc``
{
"projects": {
"default": "PROJECT_NAME",
"prod": "PROJECT_NAME_COOLER"
}
}
Current enviroment?
firebase use
awesome