Files
rowy/cli
Shams mosowi a00796626c v1.0.0
2020-09-04 23:11:36 +10:00
..
2020-08-08 23:49:55 +10:00
2020-09-04 23:11:36 +10:00

Firetable CLI

Installation requirements

Make sure you have the following installed:

Also make sure you are logged in to your Firebase account in the Firebase CLI.

Installation

npm install -g firetable

or

yarn global add firetable

Commands

Create a new project

firetable init [directory]

Run firetable locally

Before you run locally, make sure you have a Firebase project set up. Instructions

firetable start

Deploy to Firebase Hosting

First, make sure that you have created a site in your Firebase project. Open Firebase console

firetable deploy

Firebase Rules & Firetable roles

Read more about firebase rules for firetable HERE

Setting user Roles

Download the admin key for your project then add it to the directory without renaming it. You can find your service account here: https://console.firebase.google.com/u/0/project/_/settings/serviceaccounts/adminsdk

firetable auth:setRoles <email> <roles>

email: needs to be associated with an existing firebase account on the example roles: can be one role ADMIN or a comma separated array ADMIN,OPS,DEV

firetable auth:setRoles shams@antler.co OPS,INTERNAL