if [ -f .env.local ]; then
    # Load Environment Variables
    export $(cat .env.local | grep -v '#' | sed 's/\r$//' | awk '/=/ {print $1}' )
else
    echo ".env.local file not found"
    exit 1
fi

npx moralis-admin-cli watch-cloud-folder \
   --moralisCloudfolder ./scripts/moralis/cloudFunctions/ \
   --moralisApiKey $MORALIS_CLI_API_KEY \
   --moralisApiSecret $MORALIS_CLI_API_SECRET \
   --autoSave 1
