https://github.com/complexorganizations/firestore-manager
✔️ An application that can support you with Cloud Firestore | Firebase backup and restore.
https://github.com/complexorganizations/firestore-manager
Last synced: about 1 year ago
JSON representation
✔️ An application that can support you with Cloud Firestore | Firebase backup and restore.
- Host: GitHub
- URL: https://github.com/complexorganizations/firestore-manager
- Owner: complexorganizations
- License: other
- Created: 2020-08-15T16:38:11.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T15:58:53.000Z (almost 2 years ago)
- Last Synced: 2024-07-25T18:19:14.310Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 3.84 MB
- Stars: 3
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license.md
- Code of conduct: code_of_conduct.md
- Codeowners: .github/codeowners
- Security: .github/security.md
Awesome Lists containing this project
README
# Firestore Manager
#### Features
- Being able to import local json documents to firestore
- Being able to export json documents from firestore to local
- Being able to delete a certain document from firestore
---
### Usage
```
NAME:
firestore-manager - A new cli application
USAGE:
firestore-manager [global options] command [command options] [arguments...]
COMMANDS:
create, c create a document on firebase
set, s updates a document on firebase
delete, d deletes a document on firebase
read, r read a document from firebase
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
```
---
### Installation
Lets generate GCP credentials from `https://cloud.google.com/iam/docs/service-accounts-create`, Once you have your service account, your ready.
#### Unix
```
export GOOGLE_APPLICATION_CREDENTIALS=[PATH]
```
#### Windows
```
$env:GOOGLE_APPLICATION_CREDENTIALS=[PATH]
```
Download the latest `firestore-manager` binary
```
go get -v github.com/complexorganizations/firestore-manager
```
Using `firestore-manager` binary
```
firestore-manager read -auth [PATH] --collection contacts --document [DOCUMENT_ID] --file [PATH]
```