Skip to content

tryswiftweblio/TrySwiftFIRDBClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrySwiftFIRDBClient

Simple Firebase Database Client CLI

https://devpost.com/software/firebase-realtime-database-rest-api-client

How to build

$ ./build.sh

Binary will be output to build/TrySwiftFIRDBClient.

How to run

Sample Firebase Database setting is preset, if you'd like to change the DB, please set the DB Root URL and API secret key by --db-url and --api-secret.

# Show help
$ ./build/TrySwiftFIRDBClient --help

# Fetch / from default Firebase Database
$ ./build/TrySwiftFIRDBClient

# Fetch data by path
$ ./build/TrySwiftFIRDBClient get <path>

# Fetch / from another Firebase Database
$ ./build/TrySwiftFIRDBClient \
    --db-url='https://friendlychat-deadbeef.firebaseio.com/' \
    --api-secret='deadbeef' get /

# Post/Put/Patch data to the path specified
$ ./build/TrySwiftFIRDBClient post  <path> '<<json string>>'
$ ./build/TrySwiftFIRDBClient put   <path> '<<json string>>'
$ ./build/TrySwiftFIRDBClient patch <path> '<<json string>>'

# Delete data by given path
$ ./build/TrySwiftFIRDBClient delete <path>

External Libs/Sources

About

Firebase Realtime Database REST API Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •