Skip to content

Latest commit

 

History

History
 
 

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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 [email protected] OPS,INTERNAL